Skip to content

Commit 2839953

Browse files
authored
Merge pull request #73 from omerts/patch-1
Fix to actually use dedent in example
2 parents aee3c3c + bb57da9 commit 2839953

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

markdown/10_Manipulating_Strings.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ To keep a nicer flow in your code, you can use the `dedent` function from the `t
5656
from textwrap import dedent
5757

5858
def my_function():
59-
print('''
59+
print(dedent('''
6060
Dear Alice,
6161
6262
Eve's cat has been arrested for catnapping, cat burglary, and extortion.
6363
6464
Sincerely,
6565
Bob
66-
''').strip()
66+
''')).strip()
6767
```
6868

6969
This generates the same string than before.

0 commit comments

Comments
 (0)