diff options
-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 3a5a63dcee..7530299870 100644 --- a/utils/themeeditor/parsetreenode.cpp +++ b/utils/themeeditor/parsetreenode.cpp | |||
@@ -116,10 +116,8 @@ QString ParseTreeNode::genCode() const | |||
116 | if(children[i]->element->type == TAG) | 116 | if(children[i]->element->type == TAG) |
117 | buffer.append(TAGSYM); | 117 | buffer.append(TAGSYM); |
118 | buffer.append(children[i]->genCode()); | 118 | buffer.append(children[i]->genCode()); |
119 | buffer.append('\n'); | ||
120 | } | 119 | } |
121 | if(children.count() == 0) | 120 | buffer.append('\n'); |
122 | buffer.append('\n'); | ||
123 | break; | 121 | break; |
124 | 122 | ||
125 | case SUBLINES: | 123 | case SUBLINES: |
diff --git a/utils/themeeditor/skin_parser.c b/utils/themeeditor/skin_parser.c index deb3a21ab2..94d059bfcc 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) | |||
114 | retval->children = skin_alloc_children(2); | 114 | retval->children = skin_alloc_children(2); |
115 | retval->children[0] = skin_alloc_element(); | 115 | retval->children[0] = skin_alloc_element(); |
116 | skin_parse_tag(retval->children[0], &cursor); | 116 | skin_parse_tag(retval->children[0], &cursor); |
117 | if(*cursor == '\n') | ||
118 | { | ||
119 | cursor++; | ||
120 | skin_line++; | ||
121 | } | ||
117 | } | 122 | } |
118 | else | 123 | else |
119 | { | 124 | { |
@@ -185,8 +190,10 @@ struct skin_element* skin_parse_viewport(char** document) | |||
185 | last = last->next; | 190 | last = last->next; |
186 | 191 | ||
187 | if(*cursor == '\n') | 192 | if(*cursor == '\n') |
193 | { | ||
188 | cursor++; | 194 | cursor++; |
189 | 195 | skin_line++; | |
196 | } | ||
190 | } | 197 | } |
191 | 198 | ||
192 | *document = cursor; | 199 | *document = cursor; |