mirror of
https://github.com/php/php-src.git
synced 2024-11-26 11:23:47 +08:00
Simplify even more
This commit is contained in:
parent
5c4ae13670
commit
f866bdc368
13
main/main.c
13
main/main.c
@ -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, " ");
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
smart_str_appends(&s, " ");
|
||||
continue;
|
||||
case '\t':
|
||||
smart_str_appendl(&s, " ", sizeof(" ")-1);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user