summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorRobert Bieber <robby@bieberphoto.com>2010-08-05 06:25:53 +0000
committerRobert Bieber <robby@bieberphoto.com>2010-08-05 06:25:53 +0000
commit5d4b8e0b3fa58572c90c4e9af12a2112071b9c0f (patch)
treec828c6b29bbbafc7647da41c6224020fd69546c0 /utils
parent9176f35f776620f63fa2246480477cc9e7f5a2d0 (diff)
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
Diffstat (limited to 'utils')
-rw-r--r--utils/themeeditor/models/parsetreenode.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/themeeditor/models/parsetreenode.cpp b/utils/themeeditor/models/parsetreenode.cpp
index 1dedd4a689..9f802ae60f 100644
--- a/utils/themeeditor/models/parsetreenode.cpp
+++ b/utils/themeeditor/models/parsetreenode.cpp
@@ -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');
}