Commit ca1f5cc7e69462abdec7157e6b7fc3c47b0b3af7

Werner Lemberg 2014-12-02T22:49:25

[docmaker] Always handle `<Order>' section elements. Previously, those elements were handled only for sections present in a `<Sections>' chapter element. * src/tools/docmaker/content.py (ContentProcessor::finish): Implement it.

diff --git a/ChangeLog b/ChangeLog
index 7979bfc..7cf3680 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
 2014-12-02  Werner Lemberg  <wl@gnu.org>
 
+	[docmaker] Always handle `<Order>' section elements.
+
+	Previously, those elements were handled only for sections present in
+	a `<Sections>' chapter element.
+
+	* src/tools/docmaker/content.py (ContentProcessor::finish):
+	Implement it.
+
+2014-12-02  Werner Lemberg  <wl@gnu.org>
+
 	[docmaker] Properly handle empty rows in Synopsis.
 
 	* src/tools/docmaker/tohtml.py (HtmlFormatter::section_enter): Emit
diff --git a/src/tools/docmaker/content.py b/src/tools/docmaker/content.py
index 32ebd3f..adea6f1 100644
--- a/src/tools/docmaker/content.py
+++ b/src/tools/docmaker/content.py
@@ -503,6 +503,7 @@ class  ContentProcessor:
         others = []
         for sec in self.sections.values():
             if not sec.chapter:
+                sec.reorder()
                 others.append( sec )
 
         # create a new special chapter for all remaining sections