Project

General

Profile

Actions

Bug #11990

closed

Dedenting heredoc interacts poorly with string concatenation

Added by whitequark (whitequark *) over 8 years ago. Updated about 8 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]
[ruby-core:72857]

Description

The following code reproduces the problem:

p <<~E "  y"
  x
E

It prints "x\ny", but the second string is not dedenting. It should print "x\n y".

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0