* [ruby-core:72479] [Ruby trunk - Bug #11871] [Open] Heredoc unindentation with <<~ with single-quoted identifier flush-lefts the content
[not found] <redmine.issue-11871.20151225162010@ruby-lang.org>
@ 2015-12-25 16:20 ` sawadatsuyoshi
2016-02-03 11:12 ` [ruby-core:73686] [Ruby trunk Bug#11871] " usa
2016-03-29 12:21 ` [ruby-core:74686] " naruse
2 siblings, 0 replies; 3+ messages in thread
From: sawadatsuyoshi @ 2015-12-25 16:20 UTC (permalink / raw)
To: ruby-core
Issue #11871 has been reported by Tsuyoshi Sawada.
----------------------------------------
Bug #11871: Heredoc unindentation with <<~ with single-quoted identifier flush-lefts the content
https://bugs.ruby-lang.org/issues/11871
* Author: Tsuyoshi Sawada
* Status: Open
* Priority: Normal
* Assignee:
* ruby -v: 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
Heredoc unindentation with `<<~` works as expected when the identifier is bare or double-quoted:
~~~
s = <<~_
fiwfewifjf
iofwejfweifwe
fjiofwejfweiof f
fiwejfweof
_
puts s
~~~
or
~~~
s = <<~"_"
fiwfewifjf
iofwejfweifwe
fjiofwejfweiof f
fiwejfweof
_
puts s
~~~
Output:
~~~
fiwfewifjf
iofwejfweifwe
fjiofwejfweiof f
fiwejfweof
~~~
But with a single-quoted identifier, the content is flushed left:
~~~
s = <<~'_'
fiwfewifjf
iofwejfweifwe
fjiofwejfweiof f
fiwejfweof
_
puts s
~~~
Output:
~~~
fiwfewifjf
iofwejfweifwe
fjiofwejfweiof f
fiwejfweof
~~~
--
https://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* [ruby-core:73686] [Ruby trunk Bug#11871] Heredoc unindentation with <<~ with single-quoted identifier flush-lefts the content
[not found] <redmine.issue-11871.20151225162010@ruby-lang.org>
2015-12-25 16:20 ` [ruby-core:72479] [Ruby trunk - Bug #11871] [Open] Heredoc unindentation with <<~ with single-quoted identifier flush-lefts the content sawadatsuyoshi
@ 2016-02-03 11:12 ` usa
2016-03-29 12:21 ` [ruby-core:74686] " naruse
2 siblings, 0 replies; 3+ messages in thread
From: usa @ 2016-02-03 11:12 UTC (permalink / raw)
To: ruby-core
Issue #11871 has been updated by Usaku NAKAMURA.
Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONTNEED, 2.3: REQUIRED
----------------------------------------
Bug #11871: Heredoc unindentation with <<~ with single-quoted identifier flush-lefts the content
https://bugs.ruby-lang.org/issues/11871#change-56882
* Author: Tsuyoshi Sawada
* Status: Closed
* Priority: Normal
* Assignee:
* ruby -v: 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]
* Backport: 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONTNEED, 2.3: REQUIRED
----------------------------------------
Heredoc unindentation with `<<~` works as expected when the identifier is bare or double-quoted:
~~~
s = <<~_
fiwfewifjf
iofwejfweifwe
fjiofwejfweiof f
fiwejfweof
_
puts s
~~~
or
~~~
s = <<~"_"
fiwfewifjf
iofwejfweifwe
fjiofwejfweiof f
fiwejfweof
_
puts s
~~~
Output:
~~~
fiwfewifjf
iofwejfweifwe
fjiofwejfweiof f
fiwejfweof
~~~
But with a single-quoted identifier, the content is flushed left:
~~~
s = <<~'_'
fiwfewifjf
iofwejfweifwe
fjiofwejfweiof f
fiwejfweof
_
puts s
~~~
Output:
~~~
fiwfewifjf
iofwejfweifwe
fjiofwejfweiof f
fiwejfweof
~~~
--
https://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* [ruby-core:74686] [Ruby trunk Bug#11871] Heredoc unindentation with <<~ with single-quoted identifier flush-lefts the content
[not found] <redmine.issue-11871.20151225162010@ruby-lang.org>
2015-12-25 16:20 ` [ruby-core:72479] [Ruby trunk - Bug #11871] [Open] Heredoc unindentation with <<~ with single-quoted identifier flush-lefts the content sawadatsuyoshi
2016-02-03 11:12 ` [ruby-core:73686] [Ruby trunk Bug#11871] " usa
@ 2016-03-29 12:21 ` naruse
2 siblings, 0 replies; 3+ messages in thread
From: naruse @ 2016-03-29 12:21 UTC (permalink / raw)
To: ruby-core
Issue #11871 has been updated by Yui NARUSE.
Backport changed from 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONTNEED, 2.3: REQUIRED to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONTNEED, 2.3: DONE
ruby_2_3 r54398 merged revision(s) 53398.
----------------------------------------
Bug #11871: Heredoc unindentation with <<~ with single-quoted identifier flush-lefts the content
https://bugs.ruby-lang.org/issues/11871#change-57816
* Author: Tsuyoshi Sawada
* Status: Closed
* Priority: Normal
* Assignee:
* ruby -v: 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]
* Backport: 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONTNEED, 2.3: DONE
----------------------------------------
Heredoc unindentation with `<<~` works as expected when the identifier is bare or double-quoted:
~~~
s = <<~_
fiwfewifjf
iofwejfweifwe
fjiofwejfweiof f
fiwejfweof
_
puts s
~~~
or
~~~
s = <<~"_"
fiwfewifjf
iofwejfweifwe
fjiofwejfweiof f
fiwejfweof
_
puts s
~~~
Output:
~~~
fiwfewifjf
iofwejfweifwe
fjiofwejfweiof f
fiwejfweof
~~~
But with a single-quoted identifier, the content is flushed left:
~~~
s = <<~'_'
fiwfewifjf
iofwejfweifwe
fjiofwejfweiof f
fiwejfweof
_
puts s
~~~
Output:
~~~
fiwfewifjf
iofwejfweifwe
fjiofwejfweiof f
fiwejfweof
~~~
--
https://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-03-29 11:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <redmine.issue-11871.20151225162010@ruby-lang.org>
2015-12-25 16:20 ` [ruby-core:72479] [Ruby trunk - Bug #11871] [Open] Heredoc unindentation with <<~ with single-quoted identifier flush-lefts the content sawadatsuyoshi
2016-02-03 11:12 ` [ruby-core:73686] [Ruby trunk Bug#11871] " usa
2016-03-29 12:21 ` [ruby-core:74686] " naruse
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).