Fix enum constants wrapping

This commit is contained in:
Laurent Tréguier 2018-10-07 14:41:21 +02:00
parent 0ac3f1b291
commit d30208ee1f
No known key found for this signature in database
GPG Key ID: 09530BFFC32D4A69
3 changed files with 8 additions and 6 deletions

View File

@ -1314,6 +1314,7 @@ private:
{ {
if (isWrapToken) if (isWrapToken)
{ {
if (!indents.topIs(tok!"enum"))
pushWrapIndent(); pushWrapIndent();
write(" "); write(" ");
writeToken(); writeToken();
@ -1331,6 +1332,7 @@ private:
{ {
if (isWrapToken) if (isWrapToken)
{ {
if (!indents.topIs(tok!"enum"))
pushWrapIndent(); pushWrapIndent();
newline(); newline();
writeToken(); writeToken();