]> xenbits.xensource.com Git - people/liuw/xen.git/commitdiff
docs/parse-support-md: Correct handling of Status
authorIan Jackson <ian.jackson@eu.citrix.com>
Mon, 3 Dec 2018 12:01:55 +0000 (12:01 +0000)
committerIan Jackson <ian.jackson@eu.citrix.com>
Mon, 10 Dec 2018 15:13:07 +0000 (15:13 +0000)
In fact this was not markdown content, but just a string.  We are
however going to make it be markdown content.  So adjust the comments,
and the consumer.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Juergen Gross <jgross@suse.com>
docs/parse-support-md

index a8f216f131d9c06bd09fe82eba766f00278c8156..16dd99f063bd9fda386d41702904745085100ce7 100755 (executable)
@@ -30,7 +30,7 @@ our $toplevel_sectlist = new_sectlist();
 #   a tied hashref      something seen
 # (tied $sectlist)    is an object of type Tie::IxHash
 # $sectlist->{KEY} a $sectnode:
-# $sectlist->{KEY}{Status}[VI] = absent or markdown content
+# $sectlist->{KEY}{Status}[VI] = absent or string or markdown content
 # $sectlist->{KEY}{Children} = a further $sectlist
 # $sectlist->{KEY}{Key} = KEY
 # $sectlist->{KEY}{RealSectNode} = us, or our parent
@@ -341,7 +341,7 @@ sub count_rows_sectlist ($) {
 
 # After reprocess_sectlist,
 #    ->{Headline}   is in html
-#    ->{Status}     is in plain text
+#    ->{Status}     is (still) string or markdown content
 
 sub analyse_reprocess () {
     $maxdepth = 0;
@@ -430,7 +430,12 @@ sub write_output_row ($) {
             o(sprintf '<a href="%s">', $version_urls[$i]);
             $end_a = '</a>';
         }
-        o(escapeHTML($st));
+        if (ref $st) {
+            $st = pandoc2html_inline $st;
+        } else {
+            $st = escapeHTML($st);
+        }
+        o($st);
         o($end_a);
         o('</td>');
         o($nextcell);