Don't put spaces inside empty braces

This commit is contained in:
Laurent Tréguier 2018-11-06 16:40:25 +01:00
parent dc8e7a087c
commit 67664c2835
No known key found for this signature in database
GPG Key ID: 09530BFFC32D4A69
5 changed files with 9 additions and 8 deletions

View File

@ -805,6 +805,7 @@ private:
else else
{ {
niBraceDepth++; niBraceDepth++;
if (!currentIs(tok!"}"))
write(" "); write(" ");
} }
} }
@ -872,7 +873,7 @@ private:
{ {
if (niBraceDepth > 0) if (niBraceDepth > 0)
{ {
if (!peekBackIsSlashSlash()) if (!peekBackIsSlashSlash() && !peekBackIs(tok!"{"))
write(" "); write(" ");
niBraceDepth--; niBraceDepth--;
} }