Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 049cf2b commit 601483dCopy full SHA for 601483d
1 file changed
Lib/test/test_textwrap.py
@@ -754,6 +754,11 @@ def foo():
754
expect = "Foo\n Bar\n\n Baz\n"
755
self.assertEqual(expect, dedent(text))
756
757
+ # Uneven indentation with declining indent level.
758
+ text = " Foo\n Bar\n" # 5 spaces, then 4
759
+ expect = " Foo\nBar\n"
760
+ self.assertEqual(expect, dedent(text))
761
+
762
# dedent() should not mangle internal tabs
763
def test_dedent_preserve_internal_tabs(self):
764
text = " hello\tthere\n how are\tyou?"
0 commit comments