diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-02-26 11:47:01 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-02-26 11:47:01 +0200 |
commit | 628cc222d71e9f12049b85807d51f3c766db5be0 (patch) | |
tree | 0f6d649fed9fa110b6347f6e8bf0d83bc10020f6 /libbutl/char-scanner.mxx | |
parent | 3b1ce034f9bb01b6c6f4e1a74884f89ef07a9b44 (diff) |
Skip multiple CR in CRLF sequence in char_scanner
Diffstat (limited to 'libbutl/char-scanner.mxx')
-rw-r--r-- | libbutl/char-scanner.mxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libbutl/char-scanner.mxx b/libbutl/char-scanner.mxx index 3947a05..7b5be9f 100644 --- a/libbutl/char-scanner.mxx +++ b/libbutl/char-scanner.mxx @@ -39,7 +39,8 @@ LIBBUTL_MODEXPORT namespace butl public: // If the crlf argument is true, then recognize Windows newlines (0x0D // 0x0A) and convert them to just '\n' (0x0A). Note that a standalone - // 0x0D is treated "as if" it was followed by 0x0A. + // 0x0D is treated "as if" it was followed by 0x0A and multiple 0x0D + // are treated as one. // // Note also that if the stream happens to be ifdstream, then it includes // a number of optimizations that assume nobody else is messing with the |