Project

General

Profile

Actions

Bug #14621

closed

Extra whitespace in squiggly heredoc with escaped newline

Added by printercu (Max Melentiev) over 6 years ago. Updated over 5 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin16]
[ruby-core:86236]

Description

puts <<~TXT.inspect
  1 \
  2
TXT

Expected:

"1 2\n"

Got:

"1   2\n"
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0