diff --git a/lib/src/private/util/uint8_list_reader.dart b/lib/src/private/util/uint8_list_reader.dart index 92c8544e..2b372b0d 100644 --- a/lib/src/private/util/uint8_list_reader.dart +++ b/lib/src/private/util/uint8_list_reader.dart @@ -30,7 +30,7 @@ class Uint8ListReader { return null; } final data = _builder.takeFirst(pos + 1); - final line = _utf8decoder.convert(data, 0, pos - 1); + final line = _utf8decoder.convert(data, 0, pos - 1).trimLeft(); return line; } @@ -42,7 +42,7 @@ class Uint8ListReader { return null; } final data = _builder.takeFirst(pos + 1); - final text = _utf8decoder.convert(data); + final text = _utf8decoder.convert(data).trimLeft(); return text.split('\r\n')..removeLast(); }