CountBytes does not correctly count bytes when IgnoreBlankLines is enabled.
kikaragyozov opened this issue · comments
Describe the bug
CountBytes does not correctly count bytes when encountering a blank line when IgnoreBlankLines
is set to true
. A blank line is a line that only contains CR + LF and nothing else.
When I disable IgnoreBlankLines
and manually check for a blank line, the counting is as expected.
Actually I think everything is working as expected. A blank line is only ignored once it is read. Hence the confusion. If I wish to get the byte count to the last empty line, I'd have to manually do the skipping.