[docmaker] Thinko. * src/tools/docmaker/content.py (DocBlock::get_markup_words_all): Emit `/empty/' string for first element also.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
diff --git a/ChangeLog b/ChangeLog
index 9721bda..27ff990 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2014-12-02 Werner Lemberg <wl@gnu.org>
+ [docmaker] Thinko.
+
+ * src/tools/docmaker/content.py (DocBlock::get_markup_words_all):
+ Emit `/empty/' string for first element also.
+
+2014-12-02 Werner Lemberg <wl@gnu.org>
+
[docmaker] Honour empty lines in `<Order>' section element.
This greatly improves the readability of the `Synopsis' links.
diff --git a/src/tools/docmaker/content.py b/src/tools/docmaker/content.py
index 728b592..32ebd3f 100644
--- a/src/tools/docmaker/content.py
+++ b/src/tools/docmaker/content.py
@@ -610,14 +610,14 @@ class DocBlock:
def get_markup_words_all( self, tag_name ):
try:
m = self.get_markup( tag_name )
- words = m.fields[0].items[0].words
- for item in m.fields[0].items[1:]:
+ words = []
+ for item in m.fields[0].items:
# We honour empty lines in an `<Order>' section element by
# adding the sentinel `/empty/'. The formatter should then
# convert it to an appropriate representation in the
# `section_enter' function.
- words.append( "/empty/" )
words += item.words
+ words.append( "/empty/" )
return words
except:
return []