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