More explicit and simpler code

This commit is contained in:
Maxime Coste 2017-06-09 09:54:18 +01:00
parent 105b35192f
commit 242f951c84

View File

@ -492,7 +492,7 @@ public:
if (c == '\n' or c == '\r') if (c == '\n' or c == '\r')
{ {
res += StringView{pos, it}; res += StringView{pos, it};
utf8::dump(std::back_inserter(res), c == '\n' ? 0x2424 : 0x240D); res += c == '\n' ? "" : "";
pos = it+1; pos = it+1;
} }
} }