ref: 4b3ea5ca8f2ae7223bb1ad24bea07e659eec5f92
parent: 1a0716deb0f0d49e7849ff808b8842c37f9f1efb
author: Werner Lemberg <[email protected]>
date: Tue Feb 9 03:08:17 EST 2016
[docmaker] Don't emit trailing newlines. * src/tools/docmaker/tohtml.py (HtmlFormatter::make_html_code): Use `rstrip'.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2016-02-09 Werner Lemberg <[email protected]>
+
+ [docmaker] Don't emit trailing newlines.
+
+ * src/tools/docmaker/tohtml.py (HtmlFormatter::make_html_code):
+ Use `rstrip'.
+
2016-02-07 Werner Lemberg <[email protected]>
* Version 2.6.3 released.
--- a/src/tools/docmaker/tohtml.py
+++ b/src/tools/docmaker/tohtml.py
@@ -390,7 +390,7 @@
"""Convert a code sequence to HTML."""
line = code_header + '\n'
for l in lines:
- line = line + html_quote( l ) + '\n'
+ line = line + html_quote( l ).rstrip() + '\n'
return line + code_footer