Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

def test_foo():
data=textwrap.dedent("""\
[foo]
baz = 99
[foo]
baz = 99
"""),
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

def test_foo():
x = textwrap.dedent("""\
hello
world
hello
world
""")
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

def test_foo():
x = textwrap.dedent("""
hello
world
hello
world
""")
2 changes: 1 addition & 1 deletion libs/textwrap/use_textwrap_in_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading