Commit 27ae3118 authored by Fred Drake's avatar Fred Drake

Avoid trailing blank lines in the output.

parent 00c96aeb
......@@ -1022,6 +1022,10 @@ def convert(ifp, ofp):
# Take care of ugly hacks in the LaTeX markup to avoid LaTeX and
# LaTeX2HTML screwing with GNU-style long options (the '--' problem).
join_adjacent_elements(fragment, "option")
# Attempt to avoid trailing blank lines:
fragment.normalize()
if fragment.lastChild.data[-1:] == "\n":
fragment.lastChild.data = fragment.lastChild.data.rstrip() + "\n"
#
d = {}
for gi in events.parser.get_empties():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment