[docmaker] Don't emit trailing newlines.
* src/tools/docmaker/tohtml.py (HtmlFormatter::make_html_code): Use `rstrip'.
This commit is contained in:
parent
1a0716deb0
commit
4b3ea5ca8f
|
@ -1,3 +1,10 @@
|
|||
2016-02-09 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
[docmaker] Don't emit trailing newlines.
|
||||
|
||||
* src/tools/docmaker/tohtml.py (HtmlFormatter::make_html_code):
|
||||
Use `rstrip'.
|
||||
|
||||
2016-02-07 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
* Version 2.6.3 released.
|
||||
|
|
|
@ -390,7 +390,7 @@ class HtmlFormatter( Formatter ):
|
|||
"""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
|
||||
|
||||
|
|
Loading…
Reference in New Issue