diff options
Diffstat (limited to 'butl/char-scanner.cxx')
-rw-r--r-- | butl/char-scanner.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/butl/char-scanner.cxx b/butl/char-scanner.cxx index a54c20d..b923aa6 100644 --- a/butl/char-scanner.cxx +++ b/butl/char-scanner.cxx @@ -53,6 +53,17 @@ namespace butl { is_.get (); + if (crlf_ && c == 0x0D) + { + xchar c1 (peek ()); + + if (c1 == '\n') + { + is_.get (); + c = c1; + } + } + if (c == '\n') { line++; |