Simplify even more

This commit is contained in:
Sascha Schumann 2002-05-12 15:30:44 +00:00
parent 5c4ae13670
commit f866bdc368

View File

@ -400,16 +400,11 @@ PHPAPI void php_html_puts(const char *str, uint size TSRMLS_DC)
case '&':
smart_str_appendl(&s, "&", sizeof("&")-1);
break;
case ' ': {
const char *nextchar = p;
case ' ':
while (++p < end && *p == ' ');
while (++nextchar < end && *nextchar == ' ');
p = nextchar;
smart_str_appends(&s, "&nbsp;");
continue;
}
break;
smart_str_appends(&s, "&nbsp;");
continue;
case '\t':
smart_str_appendl(&s, "&nbsp;&nbsp;&nbsp;&nbsp;", sizeof("&nbsp;&nbsp;&nbsp;&nbsp;")-1);
break;