summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-07-01 10:17:41 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-07-01 10:17:41 +0000
commitaa1a126772609033ee6f16c11bafcf2f3890fa41 (patch)
tree7adaba19efda04049c79eedee679d68e49692722 /lib
parent7dfd0c065139b145590c4317ed74f2ce34deb596 (diff)
downloadrockbox-aa1a126772609033ee6f16c11bafcf2f3890fa41.tar.gz
rockbox-aa1a126772609033ee6f16c11bafcf2f3890fa41.zip
minor tweak to r27210 to make it the same as the svn parser... eat everything up to and including the \n after these tags
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27211 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'lib')
-rw-r--r--lib/skin_parser/skin_parser.c12
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;