1
0
Fork 0
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:
Robert Bieber 2010-08-05 06:25:53 +00:00
parent 9176f35f77
commit 5d4b8e0b3f

View file

@ -154,7 +154,10 @@ QString ParseTreeNode::genCode() const
buffer.append(children[i]->genCode());
}
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');
}