From aa1a126772609033ee6f16c11bafcf2f3890fa41 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Thu, 1 Jul 2010 10:17:41 +0000 Subject: 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 --- lib/skin_parser/skin_parser.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'lib/skin_parser/skin_parser.c') 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) /* Eating a newline if necessary */ if(tag_args[0] == '\n') { - if(*cursor == '\n') + while (*cursor && *cursor != '\n') + cursor++; + if (*cursor) cursor++; *document = cursor; return 1; @@ -621,9 +623,13 @@ static int skin_parse_tag(struct skin_element* element, char** document) } if(*tag_args == '\n') - if(*cursor == '\n') + { + while (*cursor && *cursor != '\n') cursor++; - + if (*cursor) + cursor++; + } + *document = cursor; return 1; -- cgit v1.2.3