preserve double newline between comments

This commit is contained in:
Andreas Zwinkau 2015-01-17 16:26:27 +01:00
parent ebb11b0695
commit 91f804496a
1 changed files with 5 additions and 0 deletions

View File

@ -171,6 +171,11 @@ private:
writeToken();
if (i >= tokens.length-1)
newline();
else if (tokens[i+1].line-1 > tokens[i].line)
{
newline();
newline();
}
else if (tokens[i+1].line > tokens[i].line)
newline();
else if (tokens[i+1].type != tok!"{")