Skip to content

Commit 08518b5

Browse files
authored
Change wording in text block spec (#1061)
Fixes #680
1 parent 45b4acd commit 08518b5

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

doc/ref/spec.html

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -169,13 +169,14 @@ <h2 id="lexing">Lexing</h2>
169169
</li>
170170
<li>
171171
Text block, beginning with <code>|||</code>, followed by optional whitespace and a
172-
new-line. The next non-blank line must be prefixed with some non-zero length whitespace
173-
<i>W</i>. The block ends at the first subsequent line that does not begin with
174-
<i>W</i>, and it is an error if this line does not contain some optional whitespace
175-
followed by <code>|||</code>. The content of the string is the concatenation of all
176-
the lines that began with <i>W</i> but with that prefix stripped. The line ending
177-
style in the file is preserved in the string. This form cannot be used in
178-
<code>import</code> statements.
172+
new-line. The next non-empty line must be prefixed with some non-zero length
173+
whitespace <i>W</i>. The block ends at the first subsequent line that is non-empty
174+
and does not begin with <i>W</i>, and it is an error if this line does not contain
175+
some optional whitespace followed by <code>|||</code>. The content of the string is
176+
the concatenation of all the lines between the two <code>|||</code>, which either
177+
begin with <i>W</i> (in which case that prefix is stripped) or they are empty lines
178+
(in which case they remain as empty lines). The line ending style in the file is
179+
preserved in the string. This form cannot be used in <code>import</code> statements.
179180
</li>
180181
</ul>
181182
<p>

0 commit comments

Comments
 (0)