From f412070f99266365576ecc2588548d6cdfd7bada Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 11 Apr 2022 17:09:51 +0100 Subject: [PATCH] Remove extra line from edits --- content.py | 2 +- tests.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content.py b/content.py index be1a07503..f6634c1fc 100644 --- a/content.py +++ b/content.py @@ -1500,6 +1500,6 @@ def create_edits_html(edits_json: {}, post_json_object: {}, content = prev_content if not edits_str: return '' - return '
' + \ + return '
' + \ translate['SHOW EDITS'] + '' + \ edits_str + '
' diff --git a/tests.py b/tests.py index 6eacaa61f..9e8f9fdec 100644 --- a/tests.py +++ b/tests.py @@ -6982,7 +6982,7 @@ def _test_diff_content() -> None: create_edits_html(edits_json, post_json_object, translate, timezone) assert html_str expected = \ - '
SHOW EDITS' + \ + '
SHOW EDITS' + \ '

Mon Dec 14, 01:07



' + \