We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ba42e8 commit 278a10aCopy full SHA for 278a10a
mypy/report.py
@@ -334,7 +334,7 @@ def on_file(self,
334
etree.SubElement(root, 'line',
335
number=str(lineno),
336
precision=stats.precision_names[status],
337
- content=line_text[:-1])
+ content=line_text.rstrip('\n'))
338
# Assumes a layout similar to what XmlReporter uses.
339
xslt_path = os.path.relpath('mypy-html.xslt', path)
340
transform_pi = etree.ProcessingInstruction('xml-stylesheet',
0 commit comments