summaryrefslogtreecommitdiffstats
path: root/utils/themeeditor/skin_parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/themeeditor/skin_parser.c')
-rw-r--r--utils/themeeditor/skin_parser.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/utils/themeeditor/skin_parser.c b/utils/themeeditor/skin_parser.c
index 9ff4f90115..347d675b55 100644
--- a/utils/themeeditor/skin_parser.c
+++ b/utils/themeeditor/skin_parser.c
@@ -163,11 +163,7 @@ struct skin_element* skin_parse_viewport(char** document)
else
to_write = &(last->next);
- if(*cursor == '\n')
- {
- cursor++;
- }
- else if(sublines)
+ if(sublines)
{
*to_write = skin_parse_sublines(&cursor);
last = *to_write;
@@ -188,6 +184,9 @@ struct skin_element* skin_parse_viewport(char** document)
while(last->next)
last = last->next;
+ if(*cursor == '\n')
+ cursor++;
+
}
*document = cursor;