1
0
Fork 0
forked from len0rd/rockbox

skin parser: skip \t characters at the begining of lines to allow for more readable skins

Change-Id: I8f3154d17807ad202fc65d462e85da2195ce605c
This commit is contained in:
Jonathan Gordon 2012-02-01 21:27:18 +11:00
parent 88cda7eb26
commit 5f387c28ce

View file

@ -314,6 +314,9 @@ static struct skin_element* skin_parse_line_optional(const char** document,
return NULL;
retval->type = LINE;
retval->line = skin_line;
while (*cursor == '\t')
cursor++;
if(*cursor != '\0' && *cursor != '\n' && *cursor != MULTILINESYM
&& !(conditional && (*cursor == ARGLISTSEPARATESYM
|| *cursor == ARGLISTCLOSESYM
@ -426,6 +429,8 @@ static struct skin_element* skin_parse_sublines_optional(const char** document,
retval->type = LINE_ALTERNATOR;
retval->next = skin_buffer_to_offset(NULL);
retval->line = skin_line;
while (*cursor == '\t')
cursor++;
/* First we count the sublines */
while(*cursor != '\0' && *cursor != '\n'