Skip to content

2.2

Compare
Choose a tag to compare
@trobro trobro released this 14 Apr 16:44
· 10 commits to master since this release

Changed behavior:

  • UnmarshalFromFile() will now ignore the last line feed in a file if the file ends with a comment. Before this change, a read-write cycle of a file with comments would always add one more line feed at the end of the file if the file ended with a comment.
  • The output from Merge() of two maps now uses the key order from the second Hjson::Value argument because the second argument is typically from an input file written by a user, and we don't want to keep changing the order that the user had decided.

Bug fixes:

  • Lower (second level or deeper) level maps now keep their comments in the output from Merge().
  • Value::clone() now keep all comments.