ref: ef6a352344a67c8e2d1408d8bf76fdf515d4dcd9
parent: 0e96f05009f2e6d4237c15f01566e56cecfdf9a0
author: Werner Lemberg <[email protected]>
date: Tue Dec 2 16:16:59 EST 2014
[docmaker] Properly handle empty rows in Synopsis. * src/tools/docmaker/tohtml.py (HtmlFormatter::section_enter): Emit ` ' for empty fields.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2014-12-02 Werner Lemberg <[email protected]>
+ [docmaker] Properly handle empty rows in Synopsis.
+
+ * src/tools/docmaker/tohtml.py (HtmlFormatter::section_enter): Emit
+ ` ' for empty fields.
+
+2014-12-02 Werner Lemberg <[email protected]>
+
[docmaker] Thinko.
* src/tools/docmaker/content.py (DocBlock::get_markup_words_all):
--- a/src/tools/docmaker/tohtml.py
+++ b/src/tools/docmaker/tohtml.py
@@ -594,7 +594,13 @@
line = line + '<td>'
if i < count:
name = section.block_names[i]
- if name != "/empty/":
+ if name == "/empty/":
+ # it can happen that a complete row is empty, and
+ # without a proper `filler' the browser might
+ # collapse the row to a much smaller height (or
+ # even omit it completely)
+ line = line + " "
+ else:
line = ( line + '<a href="#' + name + '">'
+ name + '</a>' )