squiggly heredoc strip space between interpolation and line connector by mistake #4213
Open
Description
Environment
jruby 9.1.5.0 (2.3.1) 2016-09-23 fffffff Java HotSpot(TM) Client VM 25.51-b03 on 1.8.0_51-b16 +jit [mswin32-x86]
Test code
ext = 'Tail'
puts <<~TEST
Line1 #{ext} \
Line2
TEST
puts <<~TEST
Line1 Tail \
Line2
TEST
Expected Behavior
MRI output:
Line1 Tail Line2
Line1 Tail Line2
Actual Behavior
jruby output:
Line1 TailLine2
Line1 Tail Line2