Skip to content

Commit

Permalink
[Bug #19485] [DOC] Mention tabs in indentation of heredoc identifier
Browse files Browse the repository at this point in the history
Co-Authored-By: sawa (Tsuyoshi Sawada) <sawadatsuyoshi@gmail.com>
  • Loading branch information
nobu and sawa committed Mar 19, 2023
1 parent 9654a28 commit e7342e7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/syntax/literals.rdoc
Expand Up @@ -277,6 +277,12 @@ the content. Note that empty lines and lines consisting solely of literal tabs
and spaces will be ignored for the purposes of determining indentation, but
escaped tabs and spaces are considered non-indentation characters.

For the purpose of measuring an indentation, a horizontal tab is regarded as a
sequence of one to eight spaces such that the column position corresponding to
its end is a multiple of eight. The amount to be removed is counted in terms
of the number of spaces. If the boundary appears in the middle of a tab, that
tab is not removed.

A heredoc allows interpolation and escaped characters. You may disable
interpolation and escaping by surrounding the opening identifier with single
quotes:
Expand Down

0 comments on commit e7342e7

Please sign in to comment.