Menu

#25 Comment reading/write improvements

Unstable (example)
closed-out-of-date
nobody
comments (1)
5
2015-03-06
2014-03-27
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

  • 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
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.