forked from len0rd/rockbox
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:
parent
7dfd0c0651
commit
aa1a126772
1 changed files with 9 additions and 3 deletions
|
@ -459,7 +459,9 @@ static int skin_parse_tag(struct skin_element* element, char** document)
|
||||||
/* Eating a newline if necessary */
|
/* Eating a newline if necessary */
|
||||||
if(tag_args[0] == '\n')
|
if(tag_args[0] == '\n')
|
||||||
{
|
{
|
||||||
if(*cursor == '\n')
|
while (*cursor && *cursor != '\n')
|
||||||
|
cursor++;
|
||||||
|
if (*cursor)
|
||||||
cursor++;
|
cursor++;
|
||||||
*document = cursor;
|
*document = cursor;
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -621,8 +623,12 @@ static int skin_parse_tag(struct skin_element* element, char** document)
|
||||||
}
|
}
|
||||||
|
|
||||||
if(*tag_args == '\n')
|
if(*tag_args == '\n')
|
||||||
if(*cursor == '\n')
|
{
|
||||||
|
while (*cursor && *cursor != '\n')
|
||||||
cursor++;
|
cursor++;
|
||||||
|
if (*cursor)
|
||||||
|
cursor++;
|
||||||
|
}
|
||||||
|
|
||||||
*document = cursor;
|
*document = cursor;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue