8000 New line after html output · awesome-python/html5lib-python@d9f6172 · GitHub
[go: up one dir, main page]

Skip to content {"props":{"docsUrl":"https://docs.github.com/get-started/accessibility/keyboard-shortcuts"}}

Commit d9f6172

Browse files
committed
New line after html output
--HG-- extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%40781
1 parent e52b6c8 commit d9f6172

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

parse.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ def printOutput(parser, document, opts):
103103
tokens = treewalkers.getTreeWalker(opts.treebuilder)(document)
104104
for text in serializer.HTMLSerializer(**kwargs).serialize(tokens, encoding='utf-8'):
105105
sys.stdout.write(text)
106+
if not text.endswith('\n'): sys.stdout.write('\n')
106107
if opts.error:
107108
errList=[]
108109
for pos, message in parser.errors:

0 commit comments

Comments
 (0)
0