Remove extra line from edits

main
Bob Mottram 2022-04-11 17:09:51 +01:00
parent b9579bffb2
commit f412070f99
2 changed files with 2 additions and 2 deletions

View File

@ -1500,6 +1500,6 @@ def create_edits_html(edits_json: {}, post_json_object: {},
content = prev_content
if not edits_str:
return ''
return '<br><details><summary class="cw">' + \
return '<details><summary class="cw">' + \
translate['SHOW EDITS'] + '</summary>' + \
edits_str + '</details>'

View File

@ -6982,7 +6982,7 @@ def _test_diff_content() -> None:
create_edits_html(edits_json, post_json_object, translate, timezone)
assert html_str
expected = \
'<br><details><summary class="cw">SHOW EDITS</summary>' + \
'<details><summary class="cw">SHOW EDITS</summary>' + \
'<p><b>Mon Dec 14, 01:07</b></p><p><label class="diff_add">' + \
'+ This is some content</label><br><label class="diff_remove">' + \
'- This is some previous content</label><br>' + \