![Evil or Very Mad :evil:](./images/smilies/icon_evil.gif)
I suspect this is why 90% of mod changelogs don't actually work in game
Spaces won the whitespace war. If your IDE is any good you can configure it to convert tabs to spaces when it saves the file.themadgunman wrote: Sat Mar 16, 2019 2:01 pm This whole tab hatred thing really needs fixing, especially as most IDE's will automatically add a tab when you do a new line from an already indented line,
I just switched it to automatically indent with spaces rather than tabs, for some reason this never occured to me before, thanks for the tipDaveMcW wrote: Sat Mar 16, 2019 2:15 pm Spaces won the whitespace war. If your IDE is any good you can configure it to convert tabs to spaces when it saves the file.
Some text editors allow changing tabs to spaces, can save you a lot of time.themadgunman wrote: Sat Mar 16, 2019 2:42 pmInteresting, time for Uncle Google to earn his keep today and inform me on how to do this in VS, thanks for the tipDaveMcW wrote: Sat Mar 16, 2019 2:15 pm Spaces won the whitespace war. If your IDE is any good you can configure it to convert tabs to spaces when it saves the file.
yeah it was actually just a simple setting change, it just never occured to me to look tbhSchallfalke wrote: Sat Mar 16, 2019 3:14 pm Some text editors allow changing tabs to spaces, can save you a lot of time.
For example, I am using "Sublime Text". Under menu "View" → "Indentation", there are whole bunch of options including "Indent Using Spaces", setting "Tab Width", "Convert Indentation to Spaces".
I am sure other (free) modern text editors have similar functions as well.
No... YAML is an alternative to JSON. It might be that you can represent more kinds of data with YAML (though I suspect not because YAML doesn't really have a distinction between integers and strings), but superset implies that all JSON files are YAML files, which is definitely not the case. JSON is a curly-brace based syntax, and YAML is whitespace (and some special delimiter characters) based.
(Though this seems to be morphing into a pointless discussion about the definition of "superset", my bad...)YAML can therefore be viewed as a natural superset of JSON, offering improved human readability and a more complete information model. This is also the case in practice; every JSON file is also a valid YAML file. This makes it easy to migrate from JSON to YAML if/when the additional features are required.
Interesting. I'm going to have to test out a few YAML parsers and do some investigations to see if that means what it seems it should mean based on a plain reading. In practice, YAML files typically do not use curly or square brackets. Anyway, you're right. This is kind of silly. The changelog parser seems simplistic, and I suspect that it does not support the full YAML syntax, and only a restrictive subset.BlueTemplar wrote: Tue Mar 26, 2019 11:14 pm https://yaml.org/spec/1.2/spec.html#id2759572(Though this seems to be morphing into a pointless discussion about the definition of "superset", my bad...)YAML can therefore be viewed as a natural superset of JSON, offering improved human readability and a more complete information model. This is also the case in practice; every JSON file is also a valid YAML file. This makes it easy to migrate from JSON to YAML if/when the additional features are required.
Thanks! I've included that information.badtouchatr wrote: Fri Mar 29, 2019 6:14 am I've found another picky requirement of the changelog parser: