Skip to content

Commit

Permalink
fix split_lines with newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed May 27, 2020
1 parent 3efe057 commit 953b49c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public static String splitLinesByCharacterCount(String str, int length) {
for (int i = 0; i < str.length(); i++) {
char c = str.charAt(i);
if (c == '\n') {
output.append(str, lineStart, i);
output.append(str, lineStart, i + 1);
curLineLen = 0;
lineStart = i + 1;
continue;
Expand Down

0 comments on commit 953b49c

Please sign in to comment.