forked from len0rd/rockbox
Theme Editor: Removed empty lines after comments in generated code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27708 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
9176f35f77
commit
5d4b8e0b3f
1 changed files with 4 additions and 1 deletions
|
|
@ -154,7 +154,10 @@ QString ParseTreeNode::genCode() const
|
||||||
buffer.append(children[i]->genCode());
|
buffer.append(children[i]->genCode());
|
||||||
}
|
}
|
||||||
if(openConditionals == 0
|
if(openConditionals == 0
|
||||||
&& !(parent && parent->element->type == LINE_ALTERNATOR))
|
&& !(parent && parent->element->type == LINE_ALTERNATOR)
|
||||||
|
&& !(children.count() > 0 &&
|
||||||
|
children[children.count() - 1]->getElement()->type
|
||||||
|
== COMMENT))
|
||||||
{
|
{
|
||||||
buffer.append('\n');
|
buffer.append('\n');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue