diff options
| author | Jonathan Gordon <rockbox@jdgordon.info> | 2010-07-01 10:17:41 +0000 |
|---|---|---|
| committer | Jonathan Gordon <rockbox@jdgordon.info> | 2010-07-01 10:17:41 +0000 |
| commit | aa1a126772609033ee6f16c11bafcf2f3890fa41 (patch) | |
| tree | 7adaba19efda04049c79eedee679d68e49692722 /lib | |
| parent | 7dfd0c065139b145590c4317ed74f2ce34deb596 (diff) | |
| download | rockbox-aa1a126772609033ee6f16c11bafcf2f3890fa41.zip rockbox-aa1a126772609033ee6f16c11bafcf2f3890fa41.tar.gz rockbox-aa1a126772609033ee6f16c11bafcf2f3890fa41.tar.bz2 rockbox-aa1a126772609033ee6f16c11bafcf2f3890fa41.tar.xz | |
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.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 dbb5cbe..2d43971 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; |