summaryrefslogtreecommitdiffstats
path: root/utils/themeeditor/models/parsetreenode.cpp
diff options
context:
space:
mode:
authorRobert Bieber <robby@bieberphoto.com>2010-07-03 23:31:08 +0000
committerRobert Bieber <robby@bieberphoto.com>2010-07-03 23:31:08 +0000
commite472c3975e9bf280b08bc48e6cc0fcfa0ef46ef5 (patch)
treecf1b33d0de3e196ac29373a986f7b025ff5a25bd /utils/themeeditor/models/parsetreenode.cpp
parent2f68e5be5964a24d68b7cd7816228ce340da3845 (diff)
downloadrockbox-e472c3975e9bf280b08bc48e6cc0fcfa0ef46ef5.tar.gz
rockbox-e472c3975e9bf280b08bc48e6cc0fcfa0ef46ef5.tar.bz2
rockbox-e472c3975e9bf280b08bc48e6cc0fcfa0ef46ef5.zip
Theme Editor: Fixed cd code generation bug: Tags whose paramlists end in \n will now have a newline inserted after them
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27266 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/models/parsetreenode.cpp')
-rw-r--r--utils/themeeditor/models/parsetreenode.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/themeeditor/models/parsetreenode.cpp b/utils/themeeditor/models/parsetreenode.cpp
index ae83f1aadf..0a500bfbf2 100644
--- a/utils/themeeditor/models/parsetreenode.cpp
+++ b/utils/themeeditor/models/parsetreenode.cpp
@@ -210,6 +210,8 @@ QString ParseTreeNode::genCode() const
}
buffer.append(ARGLISTCLOSESYM);
}
+ if(element->tag->params[strlen(element->tag->params) - 1] == '\n')
+ buffer.append('\n');
break;
case TEXT: