Forced a newline after any comments

This commit is contained in:
Jesse Beder
2011-08-04 21:47:57 +00:00
parent b1ac3289b8
commit bacb74e8ec
3 changed files with 49 additions and 3 deletions

View File

@@ -267,7 +267,7 @@ namespace YAML
bool WriteComment(ostream& out, const std::string& str, int postCommentIndent)
{
unsigned curIndent = out.col();
const unsigned curIndent = out.col();
out << "#" << Indentation(postCommentIndent);
int codePoint;
for(std::string::const_iterator i = str.begin();