Skip to content

Commit

Permalink
Merge pull request #8 from KatatsumuriPan/1.20.4/fabric-develop
Browse files Browse the repository at this point in the history
Update to v1.0.1
  • Loading branch information
KatatsumuriPan authored Jan 25, 2024
2 parents adc9295 + a9841f1 commit 1a8de36
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

### [1.20.4-fabric-1.0.1](https://github.com/KatatsumuriPan/BetterLineBreak/releases/tag/1.20.4-fabric-1.0.1) - 2024-01-26

- Fix \n bug.

### [1.20.4-fabric-1.0.0](https://github.com/KatatsumuriPan/BetterLineBreak/releases/tag/1.20.4-fabric-1.0.0) - 2024-01-14

- First release.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ yarn_mappings=1.20.4+build.3
loader_version=0.15.3

# Mod Properties
mod_version=1.0.0
mod_version=1.0.1
maven_group=kpan.b_line_break
archives_base_name=BetterLineBreak-1.20.4(Fabric)

Expand Down
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 @@ -357,6 +357,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 1a8de36

Please sign in to comment.