Index: apps/gui/skin_engine/skin_parser.c =================================================================== --- apps/gui/skin_engine/skin_parser.c (revision 22667) +++ apps/gui/skin_engine/skin_parser.c (working copy) @@ -1356,8 +1356,14 @@ /* Regular tag */ case '%': - if ((ret = parse_token(wps_bufptr, data)) < 0) + /* if the next char is \n then eat it so + * long lines can be made readable */ + if (*wps_bufptr == '\n') { + ret = 1; + } + else if ((ret = parse_token(wps_bufptr, data)) < 0) + { fail = PARSE_FAIL_COND_INVALID_PARAM; break; } @@ -1446,8 +1452,12 @@ fail = PARSE_FAIL_UNCLOSED_COND; break; } - wps_bufptr += skip_end_of_line(wps_bufptr); + + /* if its the first character in the line, eat the \n. + * otherwise dont! */ + if (curr_line && curr_line->curr_subline->first_token_idx != data->num_tokens) + wps_bufptr--; break; /* End of this line */