[ruby-core:85357] [Ruby trunk Bug#14032] squiggly heredoc with an interpolation at the beginning is unindented wrongly

From: nagachika00@...
Date: 2018-02-03 02:51:05 UTC
List: ruby-core #85357
Issue #14032 has been updated by nagachika (Tomoyuki Chikanaga).

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

ruby_2_4 r62174 merged revision(s) 60213.

----------------------------------------
Bug #14032: squiggly heredoc with an  interpolation at the beginning is unindented wrongly
https://bugs.ruby-lang.org/issues/14032#change-70141

* Author: nobu (Nobuyoshi Nakada)
* Status: Closed
* Priority: Normal
* Assignee: nobu (Nobuyoshi Nakada)
* Target version: 
* ruby -v: 2.5.0 dev
* Backport: 2.3: DONTNEED, 2.4: DONE
----------------------------------------
This result should be prefixed with spaces, not unindented.

```ruby
p <<~E
  a
#{1}
E
```




-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next