김준환 <[email protected]> added the comment:
If it's only for version 3.11, what do you think of the default behavior of the
dedent method being changed?
The method description says:
> Remove any common leading whitespace from every line in `text`.
```
def get_something_string():
return textwrap.dedent("""\
test text2
test text3
test text4""")
textwrap.dedent(f"""\
test text1
{get_something_string()} <<
test text5
test text6""")
```
I think it should work assuming that the indentation of
{get_something_string()} and the indentation of test text2 are on the same line.
----------
versions: -Python 3.10, Python 3.7, Python 3.8, Python 3.9
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue46992>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com