jashkenas/coffee-script — Issue #1994: Allow newlines to be escaped in multi-line strings
Author: TrevorBurnham
Created: 2012-01-01 23:32:13+00:00
State: open

Currently,

'''
foo
bar
'''

and

'''
foo\
bar
'''

both compile to the same output: `'foo\nbar'`. Normally, a `\` at the end of a line effectively means "treat this line and the next one as a single line"; I fail to see why herestrings should be an exception to that rule, particularly since it's often useful to have a long string without newline characters. (I seem to recall there being a previous issue on this, but I'm unable to locate it. #610 is related.)