Skip to content

Commit

Permalink
改行が正しく処理されないバグ修正
Browse files Browse the repository at this point in the history
  • Loading branch information
KatatsumuriPan committed Jan 25, 2024
1 parent 8f13a13 commit 567a112
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/kpan/b_line_break/LineBreakingUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,11 @@ public LineBreakResult tryBreak(String text, int startIndex, Style style, Style
int len = text.length();
for (int i = startIndex; i < len; ++i) {
char c = text.charAt(i);
if (c == '\n') {
lastBreak = i + offset;
lastBreakStyle = style;
return LineBreakResult.ending(lastBreak, lastBreakStyle);
}
if (c == '§') {
if (i + 1 >= len)
break;
Expand Down

0 comments on commit 567a112

Please sign in to comment.