Skip to content

Commit 027ad84

Browse files
burblebeetkoeppe
authored andcommitted
CWG2639 new-lines after phase 1
Fixes NB US 030 (C++23 CD).
1 parent 82c4158 commit 027ad84

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

source/lex.tex

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,18 @@
8282
then it shall be a well-formed UTF-8 code unit sequence and
8383
it is decoded to produce a sequence of UCS scalar values
8484
that constitutes the sequence of elements of the translation character set.
85+
In the resulting sequence,
86+
each pair of characters in the input sequence consisting of
87+
\unicode{000d}{carriage return} followed by \unicode{000a}{line feed},
88+
as well as each
89+
\unicode{000d}{carriage return} not immediately followed by a \unicode{000a}{line feed},
90+
is replaced by a single new-line character.
8591

8692
For any other kind of input file supported by the implementation,
8793
characters are mapped, in an
8894
\impldef{mapping physical source file characters to translation character set} manner,
89-
to a sequence of translation character set elements\iref{lex.charset}
90-
(introducing new-line characters for end-of-line indicators).
95+
to a sequence of translation character set elements\iref{lex.charset},
96+
representing end-of-line indicators as new-line characters.
9197

9298
\item
9399
\indextext{line splicing}%

0 commit comments

Comments
 (0)