Project

General

Profile

Actions

Bug #14032

closed

squiggly heredoc with an interpolation at the beginning is unindented wrongly

Added by nobu (Nobuyoshi Nakada) over 6 years ago. Updated about 6 years ago.

Status:
Closed
Target version:
-
ruby -v:
2.5.0 dev
[ruby-core:83368]

Description

This result should be prefixed with spaces, not unindented.

p <<~E
  a
#{1}
E
Actions #1

Updated by nobu (Nobuyoshi Nakada) over 6 years ago

  • Status changed from Assigned to Closed

Applied in changeset trunk|r60213.


parse.y: indent at '#'

Updated by nagachika (Tomoyuki Chikanaga) about 6 years ago

  • Backport changed from 2.3: DONTNEED, 2.4: REQUIRED to 2.3: DONTNEED, 2.4: DONE

ruby_2_4 r62174 merged revision(s) 60213.

Actions

Also available in: Atom PDF

Like0
Like0Like0