Closed ronnybremer closed 8 months ago
related to #60
Hello @ronnybremer, thanks for the PR. I will take a look asap
Coule you add a test case with your exemple from #60 please? To ensure that will not recreate the bug.
Done. I also fixed the broken test from before, needed to take 75 characters of the first line but only 74 characters of subsequent lines as a " " is added in front of each line.
I had to fix the test, too bad I can't run it myself without checking out the repo. The text
variable needs to include the expected line breaks, which I now added. Hopefully it works now. Sorry for the hassle.
@Peltoche would you please start the testing stage again? Thank you.
one last wrong character, can't believe it :(
Sorry for the delay.
LGTM, thanks for this PR :+1:
split_line was working fine as long as the input was just plain US-ASCII. When using multibyte characters and they happened to be at the end of the line to spit the function did panic.
The new code returns correctly split lines even if they contain multibyte characters.