diff options
| author | Robert Bieber <robby@bieberphoto.com> | 2010-06-02 07:04:33 +0000 |
|---|---|---|
| committer | Robert Bieber <robby@bieberphoto.com> | 2010-06-02 07:04:33 +0000 |
| commit | 7f10b0336e9aacd4fb21269da652671ff610aa05 (patch) | |
| tree | e56fa23e13ac53d312882a29fe59a3896c5f2e6b /utils/themeeditor | |
| parent | ea864be7082cbe2d1a9d4f5b1e809feacb1d1aaf (diff) | |
| download | rockbox-7f10b0336e9aacd4fb21269da652671ff610aa05.zip rockbox-7f10b0336e9aacd4fb21269da652671ff610aa05.tar.gz rockbox-7f10b0336e9aacd4fb21269da652671ff610aa05.tar.bz2 rockbox-7f10b0336e9aacd4fb21269da652671ff610aa05.tar.xz | |
Theme Editor: Fixed some more code generation bugs
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26466 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor')
| -rw-r--r-- | utils/themeeditor/parsetreenode.cpp | 4 | ||||
| -rw-r--r-- | utils/themeeditor/skin_parser.c | 9 |
2 files changed, 9 insertions, 4 deletions
diff --git a/utils/themeeditor/parsetreenode.cpp b/utils/themeeditor/parsetreenode.cpp index 3a5a63d..7530299 100644 --- a/utils/themeeditor/parsetreenode.cpp +++ b/utils/themeeditor/parsetreenode.cpp @@ -116,10 +116,8 @@ QString ParseTreeNode::genCode() const if(children[i]->element->type == TAG) buffer.append(TAGSYM); buffer.append(children[i]->genCode()); - buffer.append('\n'); } - if(children.count() == 0) - buffer.append('\n'); + buffer.append('\n'); break; case SUBLINES: diff --git a/utils/themeeditor/skin_parser.c b/utils/themeeditor/skin_parser.c index deb3a21..94d059b 100644 --- a/utils/themeeditor/skin_parser.c +++ b/utils/themeeditor/skin_parser.c @@ -114,6 +114,11 @@ struct skin_element* skin_parse_viewport(char** document) retval->children = skin_alloc_children(2); retval->children[0] = skin_alloc_element(); skin_parse_tag(retval->children[0], &cursor); + if(*cursor == '\n') + { + cursor++; + skin_line++; + } } else { @@ -185,8 +190,10 @@ struct skin_element* skin_parse_viewport(char** document) last = last->next; if(*cursor == '\n') + { cursor++; - + skin_line++; + } } *document = cursor; |