Skip to content

Commit 8b4422c

Browse files
committed
Clarify what is meant by an empty line
1 parent c0bddbd commit 8b4422c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

text/3830-dedented-string-literals.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,8 @@ Note: **Literal newlines** (*not* escaped newlines: `\n`) are represented with `
784784

785785
## Algorithm for dedented strings
786786

787-
Whitespace is spaces or horizontal tabs.
787+
Whitespace is literal spaces or literal horizontal tabs.
788+
An empty line only consists of literal spaces, literal horizontal tabs or literal newlines
788789

789790
1. The opening line (the line containing the opening quote `"`)
790791
- Must only contain a literal newline character after the `"` token
@@ -799,7 +800,7 @@ Whitespace is spaces or horizontal tabs.
799800

800801
It is the largest amount of leading whitespace shared by all non-empty lines.
801802

802-
1. For each non-empty line, remove the smallest amount of leading whitespace that satisfies:
803+
1. For each line, remove the smallest amount of leading whitespace that satisfies:
803804

804805
- `min(common indentation, closing indentation)`
805806

0 commit comments

Comments
 (0)