Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

squiggly heredoc strip space between interpolation and line connector by mistake #4213

Open
pbl-pw opened this issue Oct 8, 2016 · 0 comments

Comments

@pbl-pw
Copy link

pbl-pw commented Oct 8, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants