tchristofferson / Config-Updater

Used to update files for Bukkit/Spigot API
MIT License
66 stars 9 forks source link

Issue with spacing long strings #4

Closed Gypopo closed 3 years ago

Gypopo commented 3 years ago

Hello, first of all, I love you resource of the config updater that includes comments.

But I have an issue and I can't manage to fix it myself.

I have a string inside my config that's really long, which gets spliited into 5 lines by the config reader. The issue now is, when I use your resource to read and save the file, it saves it with less indents before the lines itself.

See these images for the difference: https://imgur.com/a/dYxvPlW Note the spaces I marked in the pictures

When the config gets saved by your resource, it has a invalid YAML formatting and so the plugin cannot read it anymore.

Gypopo commented 3 years ago

I actually was really dump,

I solved this by removing all new line characters in the string.