Merge pull request #409 from LaurentTreguier/empty-braces-double-spaces
Spaces inside empty braces merged-on-behalf-of: Brian Schott <Hackerpilot@users.noreply.github.com>
This commit is contained in:
commit
fd1f2f5161
|
@ -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--;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue