Skip to content

Fix edge cases with chat newline rewriter; make it more like vanilla - #696

Merged
florianreuth merged 1 commit into
ViaVersion:masterfrom
Beaness:boldnewline
Jul 2, 2026
Merged

Fix edge cases with chat newline rewriter; make it more like vanilla#696
florianreuth merged 1 commit into
ViaVersion:masterfrom
Beaness:boldnewline

Conversation

@Beaness

@Beaness Beaness commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

This pr fixes some edge cases and should be more accurate to 1.8 splitting (based on GuiUtilRenderComponents in MCP 1.8.9)

Before:
image

After:
image

Test command:
tellraw @a {"text":"","extra":[{"text":"BOLD RED FIRST LINE\n","color":"red","bold":true},{"text":"SECOND LINE SHOULD BE P LAIN WHITE"}]}

@florianreuth florianreuth left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine for now, but ideally this would use MCStructs API instead of raw json object operations.

@florianreuth
florianreuth merged commit 02f55ed into ViaVersion:master Jul 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants