On second thought, it is usually unlikely that you would have some lines with line continuation markers and some without, in a single string literal. So instead of a line continuation marker at the end of every line, which adds noise to both reading and writing, we may allow a “line continuation mode” through a different prefix such as D.
raise SomeException(D"""
Some explanation that is longer than the ~60 characters of width
I normally have left at this point because I'm already a few
levels of indentation deep. Blah de blah de blah.
""") # results in a dedented string with no newlines
The line continuation marker feature may still be useful when there are mutiple paragraphs:
raise SomeException(d"""
Some explanation that is longer than the ~60 characters of width \
I normally have left at this point because I'm already a few \
levels of indentation deep.
- detail #1: ...
- detail #2: ...
""")
although the above may also be accomplished with concatenation of two string literals, depending on personal preferences:
raise SomeException(D"""
Some explanation that is longer than the ~60 characters of width
I normally have left at this point because I'm already a few
levels of indentation deep.
"""
d"""
- detail #1: ...
- detail #2: ...
""")