Skip to content
Snippets Groups Projects
Commit c22b9b05 authored by Chris Lamb's avatar Chris Lamb :eyes:
Browse files

Prevent an unnecessary .format() when rendering difference comments.

parent 1e93a1cb
No related branches found
No related tags found
No related merge requests found
......@@ -264,10 +264,7 @@ def output_node(ctx, difference, path, indentstr, indentnum):
comments = '{1[1]}<div class="comment {0}">{2}{1[1]}</div>\n'.format(
"multiline" if len(difference.comments) > 1 else "",
indent,
"\n".join(
"{1}".format(indent, html.escape(x))
for x in difference.comments
),
"\n".join(html.escape(x) for x in difference.comments),
)
visuals = ""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment