[xen staging] docs/parse-support-md: Correctly process caveats in multi-status sections

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[xen staging] docs/parse-support-md: Correctly process caveats in multi-status sections

patchbot
commit bd9f5f7c6668227fa539eccf78faaaab17637ddd
Author:     Ian Jackson <[hidden email]>
AuthorDate: Tue May 15 15:41:14 2018 +0100
Commit:     Ian Jackson <[hidden email]>
CommitDate: Tue May 15 16:41:45 2018 +0100

    docs/parse-support-md: Correctly process caveats in multi-status sections
   
    When SUPPORT.md uses the syntax
      Status, <some thing>: <support status>
    the caveats were lost (not footnoted) because they were attached
    only to <some thing>.
   
    Caveats occur in running text, so they are necessarily part of a real
    section, not an individual status line like that.  So attach them to
    the RealSectNode, and look there for them.
   
    Reported-by: Lars Kurth <[hidden email]>
    Signed-off-by: Ian Jackson <[hidden email]>
    Acked-by: Lars Kurth <[hidden email]>
    Release-acked-by: Juergen Gross <[hidden email]>
---
 docs/parse-support-md | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/docs/parse-support-md b/docs/parse-support-md
index 278072f583..99ce547c11 100755
--- a/docs/parse-support-md
+++ b/docs/parse-support-md
@@ -34,7 +34,7 @@ our $toplevel_sectlist = new_sectlist();
 # $sectlist->{KEY}{Children} = a further $sectlist
 # $sectlist->{KEY}{Key} = KEY
 # $sectlist->{KEY}{RealSectNode} = us, or our parent
-# $sectlist->{KEY}{HasCaveat}[VI] = trueish iff other in a Para
+# $sectlist->{KEY}{RealSectNode}{HasCaveat}[VI] = trueish iff other in a Para
 # $sectlist->{KEY}{RealInSect} = containing real section in @insections, so
 # $sectlist->{KEY}{RealInSect}{HasDescription} = VI for some Emph in Para
 # $sectlist->{KEY}{RealInSect}{Anchor} = value for < id="" > in the pandoc html
@@ -123,7 +123,7 @@ sub ri_Para {
 
     if ($had_feature) {
         my $sectnode = find_current_sectnode();
-        $sectnode->{HasCaveat}[$version_index] = 1;
+        $sectnode->{RealSectNode}{HasCaveat}[$version_index] = 1;
     } else {
         $insection->{HasDescription} //= $version_index;
     }
@@ -402,7 +402,7 @@ sub write_output_row ($) {
         my $nextcell = '';
         if (!defined $colspan) { # first row of this RealInSect
             $colspan= ' colspan="2"';
-            if ($sectnode->{HasCaveat}[$i] && $st
+            if ($sectnode->{RealSectNode}{HasCaveat}[$i] && $st
                 && $sectnode->{RealInSect}{Anchor}) {
                 my $rows = $sectnode->{RealInSect}{OwnRows};
                 $nextcell = '<td';
--
generated by git-patchbot for /home/xen/git/xen.git#staging

_______________________________________________
Xen-changelog mailing list
[hidden email]
https://lists.xenproject.org/xen-changelog