Skip to content

Commit

Permalink
Merge pull request #5 from KatatsumuriPan/1.16.5/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 8f13a13 + 0fc87c1 commit 6841b69
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 @@
# Changelog

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

- Fix \n bug.

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

- 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.16.5+build.10
loader_version=0.15.3

# Mod Properties
mod_version=1.0.0
mod_version=1.0.1
maven_group=kpan.better_line_break
archives_base_name=BetterLineBreak-1.16.5(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 @@ -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 6841b69

Please sign in to comment.