Issue #14621 has been updated by printercu (Max Melentiev).


Teste in ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-linux] - same result.

----------------------------------------
Bug #14621: Extra whitespace in squiggly heredoc with escaped newline
https://bugs.ruby-lang.org/issues/14621#change-71134

* Author: printercu (Max Melentiev)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin16]
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
~~~
puts <<~TXT.inspect
  1 \
  2
TXT

Expected:
"1 2\n"

Got:
"1   2\n"
~~~



-- 
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>