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;