
Issue #19539 has been reported by hurricup (Alexandr Evstigneev). ---------------------------------------- Bug #19539: Heredocs with leading spaces inconsistency https://bugs.ruby-lang.org/issues/19539 * Author: hurricup (Alexandr Evstigneev) * Status: Open * Priority: Normal * Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN ---------------------------------------- This is more like technical inconsistency that bothers me. Not sure someone will use this in real life, but still. This works fine: ``` puts <<' ABC' marker with spaces ABC ``` But this is not: ``` puts <<-' ABC' marker with spaces ABC ``` as well as ``` puts <<~' ABC' marker with spaces ABC ``` I would expect it to wok properly, even in case: ``` puts <<-' ABC' marker with spaces ABC ``` -- https://bugs.ruby-lang.org/