From eb4810893eb4c8379c3455f1e8a75ccd3b911aa6 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 22 Apr 2017 11:52:44 +0200 Subject: Fix Windows CR/LF handling --- butl/char-scanner | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'butl/char-scanner') diff --git a/butl/char-scanner b/butl/char-scanner index 7dc56fa..cbeca96 100644 --- a/butl/char-scanner +++ b/butl/char-scanner @@ -20,8 +20,8 @@ namespace butl { public: // If the crlf argument is true, then recognize Windows newlines (0x0D - // 0x0A) and convert them to just '\n' (0x0A). Note that standalone 0x0D - // that are not followed by 0x0A are returned as is. + // 0x0A) and convert them to just '\n' (0x0A). Note that a standalone + // 0x0D is treated "as if" it was followed by 0x0A. // char_scanner (std::istream& is, bool crlf = true) : is_ (is), crlf_ (crlf) {} -- cgit v1.1