forked from len0rd/rockbox
Theme Editor: Fixed some more code generation bugs
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26466 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ea864be708
commit
7f10b0336e
2 changed files with 9 additions and 4 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue