diff options
Diffstat (limited to 'lib/skin_parser/skin_parser.c')
-rw-r--r-- | lib/skin_parser/skin_parser.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/skin_parser/skin_parser.c b/lib/skin_parser/skin_parser.c index dbb5cbe93e..2d439710d9 100644 --- a/lib/skin_parser/skin_parser.c +++ b/lib/skin_parser/skin_parser.c | |||
@@ -459,7 +459,9 @@ static int skin_parse_tag(struct skin_element* element, char** document) | |||
459 | /* Eating a newline if necessary */ | 459 | /* Eating a newline if necessary */ |
460 | if(tag_args[0] == '\n') | 460 | if(tag_args[0] == '\n') |
461 | { | 461 | { |
462 | if(*cursor == '\n') | 462 | while (*cursor && *cursor != '\n') |
463 | cursor++; | ||
464 | if (*cursor) | ||
463 | cursor++; | 465 | cursor++; |
464 | *document = cursor; | 466 | *document = cursor; |
465 | return 1; | 467 | return 1; |
@@ -621,9 +623,13 @@ static int skin_parse_tag(struct skin_element* element, char** document) | |||
621 | } | 623 | } |
622 | 624 | ||
623 | if(*tag_args == '\n') | 625 | if(*tag_args == '\n') |
624 | if(*cursor == '\n') | 626 | { |
627 | while (*cursor && *cursor != '\n') | ||
625 | cursor++; | 628 | cursor++; |
626 | 629 | if (*cursor) | |
630 | cursor++; | ||
631 | } | ||
632 | |||
627 | *document = cursor; | 633 | *document = cursor; |
628 | 634 | ||
629 | return 1; | 635 | return 1; |