Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix-json-multiline #90

Merged
merged 1 commit into from
Feb 1, 2025

Conversation

MrAmericanMike
Copy link
Contributor

With some help apparently this changes should fix the multiline error I mentioned on #89

This results in a new line that looks like this:

"description": "Remove Mouseover Highlight\\nby MrAmericanMike",

JSON validates. And apparently that how a new line in JSON should look like. https://stackoverflow.com/questions/4253367/how-to-escape-a-json-string-containing-newline-characters-using-javascript

PS: I also moved the pack.mcmeta to use that, as it's technically a json file too, even when it's not using multiline, but I guess it's better just to be safe. And this way if other edge cases need special handling, we should be ready.

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