[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] docs/parse-support-md: Correct handling of Status
commit 77e9e7828e3d8c9fece197b91e8390f1462047ca Author: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> AuthorDate: Mon Dec 3 12:01:55 2018 +0000 Commit: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> CommitDate: Mon Dec 10 15:13:07 2018 +0000 docs/parse-support-md: Correct handling of Status 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@xxxxxxxxxxxxx> Acked-by: Juergen Gross <jgross@xxxxxxxx> --- docs/parse-support-md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/parse-support-md b/docs/parse-support-md index a8f216f131..16dd99f063 100755 --- a/docs/parse-support-md +++ b/docs/parse-support-md @@ -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); -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |