diff --git a/libs/textwrap/tests/use_textwrap_in_tests/backslash_continuation/output/tests/test_example.py b/libs/textwrap/tests/use_textwrap_in_tests/backslash_continuation/output/tests/test_example.py index ce339c7..73cd440 100644 --- a/libs/textwrap/tests/use_textwrap_in_tests/backslash_continuation/output/tests/test_example.py +++ b/libs/textwrap/tests/use_textwrap_in_tests/backslash_continuation/output/tests/test_example.py @@ -3,6 +3,6 @@ def test_foo(): data=textwrap.dedent("""\ - [foo] - baz = 99 + [foo] + baz = 99 """), diff --git a/libs/textwrap/tests/use_textwrap_in_tests/no_leading_newline/output/tests/test_example.py b/libs/textwrap/tests/use_textwrap_in_tests/no_leading_newline/output/tests/test_example.py index a52b103..f6b1251 100644 --- a/libs/textwrap/tests/use_textwrap_in_tests/no_leading_newline/output/tests/test_example.py +++ b/libs/textwrap/tests/use_textwrap_in_tests/no_leading_newline/output/tests/test_example.py @@ -3,6 +3,6 @@ def test_foo(): x = textwrap.dedent("""\ - hello - world + hello + world """) diff --git a/libs/textwrap/tests/use_textwrap_in_tests/with_leading_newline/output/tests/test_example.py b/libs/textwrap/tests/use_textwrap_in_tests/with_leading_newline/output/tests/test_example.py index 3d416b1..14b959e 100644 --- a/libs/textwrap/tests/use_textwrap_in_tests/with_leading_newline/output/tests/test_example.py +++ b/libs/textwrap/tests/use_textwrap_in_tests/with_leading_newline/output/tests/test_example.py @@ -3,6 +3,6 @@ def test_foo(): x = textwrap.dedent(""" - hello - world + hello + world """) diff --git a/libs/textwrap/use_textwrap_in_tests.py b/libs/textwrap/use_textwrap_in_tests.py index a7066a9..274c4f0 100644 --- a/libs/textwrap/use_textwrap_in_tests.py +++ b/libs/textwrap/use_textwrap_in_tests.py @@ -159,7 +159,7 @@ def leave_SimpleString( if not stmt_indent: return updated_node - correct_indent = stmt_indent + correct_indent = stmt_indent + self._module.default_indent new_content = _reindent_content(content, correct_indent, stmt_indent) new_value = prefix + quote + new_content + quote