# Single ' should be allowed. oneline = '''This string has a ' quote character.''' # A newline immediately following the opening delimiter will be trimmed. firstnl = ''' This string has a ' quote character.''' # All other whitespace and newline characters remain intact. multiline = ''' This string has ' a quote character and more than one newline in it.''' # Tab character in literal string does not need to be escaped multiline_with_tab = '''First line Followed by a tab''' this-str-has-apostrophes='''' there's one already '' two more '''''