#25 Comment reading/write improvements

Unstable (example)
comments (1)

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


  • Christopher Dunn

    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.)

  • Christopher Dunn

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

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks