#25 Comment reading/write improvements

Unstable (example)
closed-out-of-date
nobody
comments (1)
5
2015-03-06
2014-03-27
Cory Quammen
No

This patch fixes some aspects of reading and writing comments:

  • Multiple C++-style comments before a Json value had extra newlines appended to them. This patch removes the addition of those newlines.
  • Comments written before Json values in the StyledWriter were not indented to match the indentation level of the value. This patch adds indentation to comments.
  • Fixed inconsistency in newlines following C- and C++-style comments being saved as part of the comment. All newlines at the end of a comment are now removed.
  • Added an additional test of comments.
1 Attachments

Discussion

  • Patched at r278.

    Also in github. (I don't know if I can put another dev's name on it in Subversion. I think we'll move to Git soon though.)

     
    • status: open --> closed-out-of-date