[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[6652] add_node_menu_if_missing check child nodes
From: |
Gavin D. Smith |
Subject: |
[6652] add_node_menu_if_missing check child nodes |
Date: |
Mon, 28 Sep 2015 11:47:18 +0000 |
Revision: 6652
http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=6652
Author: gavin
Date: 2015-09-28 11:47:17 +0000 (Mon, 28 Sep 2015)
Log Message:
-----------
add_node_menu_if_missing check child nodes
Modified Paths:
--------------
trunk/ChangeLog
trunk/tp/Texinfo/Structuring.pm
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2015-09-28 09:34:22 UTC (rev 6651)
+++ trunk/ChangeLog 2015-09-28 11:47:17 UTC (rev 6652)
@@ -1,7 +1,10 @@
2015-09-28 Gavin Smith <address@hidden>
- * tp/Texinfo/Convert/DocBook.pm:
+ * tp/Texinfo/Convert/DocBook.pm:
Add "use Texinfo::Convert::Plaintext" declaration.
+
+ * tp/Texinfo/Structuring.pm (add_node_menu_if_missing): Account
+ for the case that there are no children nodes.
2015-09-27 Gavin Smith <address@hidden>
Modified: trunk/tp/Texinfo/Structuring.pm
===================================================================
--- trunk/tp/Texinfo/Structuring.pm 2015-09-28 09:34:22 UTC (rev 6651)
+++ trunk/tp/Texinfo/Structuring.pm 2015-09-28 11:47:17 UTC (rev 6652)
@@ -1701,6 +1701,10 @@
}
}
+ if ($#node_childs+1 == 0) {
+ return;
+ }
+
my @pending;
for my $child (@node_childs) {
my $entry = _new_node_menu_entry($self,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [6652] add_node_menu_if_missing check child nodes,
Gavin D. Smith <=