| 1 |
# Single ' should be allowed. |
| 2 |
oneline = '''This string has a ' quote character.''' |
| 3 |
|
| 4 |
# A newline immediately following the opening delimiter will be trimmed. |
| 5 |
firstnl = ''' |
| 6 |
This string has a ' quote character.''' |
| 7 |
|
| 8 |
# All other whitespace and newline characters remain intact. |
| 9 |
multiline = ''' |
| 10 |
This string |
| 11 |
has ' a quote character |
| 12 |
and more than |
| 13 |
one newline |
| 14 |
in it.''' |
| 15 |
|
| 16 |
# Tab character in literal string does not need to be escaped |
| 17 |
multiline_with_tab = '''First line |
| 18 |
Followed by a tab''' |
| 19 |
|
| 20 |
this-str-has-apostrophes='''' there's one already |
| 21 |
'' two more |
| 22 |
''''' |