Nitpick: Literal newline in `fabric.mod.json` of 0.2.0 artifact
YoshiRulz opened this issue ยท 5 comments
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:
...I'm guessing the process of expanding templates is what introduces it.
Interesting, I did not know that happens. I'm pretty much just using the default build config from fabric's example mod, so I'm not sure how I could fix this permanently (sure I could just overwrite the fabric.mod.json when it's built, but I kinda don't want to do that every time). If you have any suggestions (except removing the newline lol), feel free to let me know
I found 2 mods which don't have the same problem, and they both have this in their build scripts:
expand(stringProperties) {
escapeBackslash = true
}
The extra line fixed this issue. All builds moving forwards will not have literal new lines in their fabric.mod.json
๐