From 9ac6745ae4257c8f73c2c5682e1ce74407e1d886 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 3 Jul 2016 15:35:12 +0100 Subject: Change formatting of comments to match Word --- tests/conversion_tests.py | 4 ++-- tests/mammoth_tests.py | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'tests') diff --git a/tests/conversion_tests.py b/tests/conversion_tests.py index 2aec1c1..74a1d10 100644 --- a/tests/conversion_tests.py +++ b/tests/conversion_tests.py @@ -469,8 +469,8 @@ def comment_references_are_linked_to_comment_after_main_body(): ], ) expected_html = ( - '

Knock knock[TP 1]

' + - '
TP 1

Who\'s there? ↑

' + '

Knock knock[TP1]

' + + '
Comment [TP1]

Who\'s there? ↑

' ) assert_equal(expected_html, result.value) diff --git a/tests/mammoth_tests.py b/tests/mammoth_tests.py index 8ad9b33..4390544 100644 --- a/tests/mammoth_tests.py +++ b/tests/mammoth_tests.py @@ -188,10 +188,10 @@ def relationships_are_handled_properly_in_footnotes(): def when_style_mapping_is_defined_for_comment_references_then_comments_are_included(): expected_html = ( '

Ouch' + - '[MW 1].' + - '[MW 2]

' + - '
MW 1

A tachyon walks into a bar. ↑

' + - '
MW 2

Fin. ↑

' + '[MW1].' + + '[MW2]

' + + '
Comment [MW1]

A tachyon walks into a bar. ↑

' + + '
Comment [MW2]

Fin. ↑

' ) with open(test_path("comments.docx"), "rb") as fileobj: -- cgit v1.2.3