[xen staging] docs/parse-support-md: Provide $sectnode->{RealSectNode}

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

[xen staging] docs/parse-support-md: Provide $sectnode->{RealSectNode}

patchbot
commit 42a558140478f551bd8a38466bfc91fadaf850a1
Author:     Ian Jackson <[hidden email]>
AuthorDate: Tue May 15 15:39:03 2018 +0100
Commit:     Ian Jackson <[hidden email]>
CommitDate: Tue May 15 16:41:42 2018 +0100

    docs/parse-support-md: Provide $sectnode->{RealSectNode}
   
    No functional change yet.
   
    Signed-off-by: Ian Jackson <[hidden email]>
    Acked-by: Lars Kurth <[hidden email]>
    Release-acked-by: Juergen Gross <[hidden email]>
---
 docs/parse-support-md | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/docs/parse-support-md b/docs/parse-support-md
index 8af3acc2c1..278072f583 100755
--- a/docs/parse-support-md
+++ b/docs/parse-support-md
@@ -33,6 +33,7 @@ our $toplevel_sectlist = new_sectlist();
 # $sectlist->{KEY}{Status}[VI] = absent or markdown content
 # $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}{RealInSect} = containing real section in @insections, so
 # $sectlist->{KEY}{RealInSect}{HasDescription} = VI for some Emph in Para
@@ -71,6 +72,7 @@ sub find_current_sectnode () {
 
     my $sectnode;
     my $realinsect;
+    my $realsectnode;
     foreach my $s (@insections) {
         my $sectlist = $sectnode
             ? $sectnode->{Children} : $toplevel_sectlist;
@@ -87,6 +89,8 @@ sub find_current_sectnode () {
              HasCaveat => [],
             };
         $sectnode = $sectlist->{$key};
+        $realsectnode = $sectnode if $s->{Anchor};
+        $sectnode->{RealSectNode} = $realsectnode;
     }
     die unless $sectnode;
     return $sectnode;
--
generated by git-patchbot for /home/xen/git/xen.git#staging

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