Issue #14621 has been updated by nagachika (Tomoyuki Chikanaga).

Backport changed from 2.3: REQUIRED, 2.4: REQUIRED, 2.5: REQUIRED to 2.3: REQUIRED, 2.4: REQUIRED, 2.5: DONE

ruby_2_5 r67050 merged revision(s) 62872,62873.

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

* Author: printercu (Max Melentiev)
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin16]
* Backport: 2.3: REQUIRED, 2.4: REQUIRED, 2.5: DONE
----------------------------------------
~~~ruby
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>