Fix #12
This commit is contained in:
parent
e4ed938515
commit
41854aaeb6
|
@ -201,7 +201,12 @@ private:
|
||||||
{
|
{
|
||||||
writeToken();
|
writeToken();
|
||||||
tempIndent = 0;
|
tempIndent = 0;
|
||||||
if (current.type == tok!"comment")
|
if (index >= tokens.length)
|
||||||
|
{
|
||||||
|
newline();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if (current.type == tok!"comment")
|
||||||
break;
|
break;
|
||||||
if (!(t == tok!"import" && current.type == tok!"import"))
|
if (!(t == tok!"import" && current.type == tok!"import"))
|
||||||
write("\n");
|
write("\n");
|
||||||
|
@ -222,7 +227,7 @@ private:
|
||||||
}
|
}
|
||||||
assert (length_of_next_chunk > 0);
|
assert (length_of_next_chunk > 0);
|
||||||
writeToken();
|
writeToken();
|
||||||
if (currentLineLength+1+length_of_next_chunk >= config.columnSoftLimit)
|
if (currentLineLength + 1 + length_of_next_chunk >= config.columnSoftLimit)
|
||||||
{
|
{
|
||||||
pushIndent();
|
pushIndent();
|
||||||
newline();
|
newline();
|
||||||
|
|
Loading…
Reference in New Issue