Issue #11990 has been updated by Yui NARUSE.
Backport changed from 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONTNEED, 2.3: REQUIRED to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONTNEED, 2.3: DONE
ruby_2_3 r54399 merged revision(s) 53541,53555,53570.
----------------------------------------
Bug #11990: Dedenting heredoc interacts poorly with string concatenation
https://bugs.ruby-lang.org/issues/11990#change-57817
* Author: whitequark *
* Status: Closed
* Priority: Normal
* Assignee:
* ruby -v: ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]
* Backport: 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONTNEED, 2.3: DONE
----------------------------------------
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"`.
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>