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
This commit is contained in:
Jonathan Gordon 2010-07-01 10:17:41 +00:00
parent 7dfd0c0651
commit aa1a126772

View file

@ -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;