Chat Patches

Chat Patches

2M Downloads

Nitpick: Literal newline in `fabric.mod.json` - 204.6.4 for 1.20.4

YoshiRulz opened this issue ยท 4 comments

commented

This doesn't seem to be a problem for the Fabric loader, but a strict parser like jq's will choke on literal newlines in strings.
Since it's not literal in the source:

"description": "A versatile client-side chat mod that makes the chat more useful and customizable! Check out the config and the GitHub page for more info!\nJoin the Discord at https://discord.gg/3MqBvNEyMz!",

...I'm guessing the process of expanding templates is what introduces it.

commented

It is already escaped and something is "unescaping" it.

commented

Are you suggesting i escape it or just remove it?

commented

closed in upcoming release 210.6.6 for 1.21, will be for 1.20.4 in the future!

commented

Ah I neglected to tell you about my discovery: The cause of this is a missing escapeBackslash = true in the build script, see https://github.com/FabricMC/fabric-example-mod/pull/282/files.