-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #290 from zmstone/no-escape-for-multiline-str
breaking: no escape at all in triple quotes
- Loading branch information
Showing
6 changed files
with
98 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
## this file is to verify that 'a' and 'b' should have the same value | ||
|
||
# normal quotes with escape sequence | ||
a = "line1\nline2\"\"\"\nline3\n" | ||
|
||
# triple quotes for line1 and line3, but normal quotes for line2""" | ||
b = """line1 | ||
""" | ||
"line2\"\"\"\n" | ||
"""line3 | ||
""" | ||
|
||
# tripel quotes with indentation for line1 and line3, but normal quotes for line2""" | ||
c = """~ | ||
line1 | ||
~""" | ||
"line2\"\"\"\n" | ||
"""~ | ||
line3 | ||
~""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters