diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2005-05-22 16:40:06 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2005-05-22 16:40:06 +0000 |
| commit | 76c05604a657f2b0d48ed3aaa4186d0a3309d7a8 (patch) | |
| tree | c5e483d2736b560c8487a3d856c14eb8a46dec3a /Zend/zend_highlight.c | |
| parent | a186549ec0344195a82a8434bda530a250e1280f (diff) | |
| download | php-git-76c05604a657f2b0d48ed3aaa4186d0a3309d7a8.tar.gz | |
Fixed bug #29338 (unencoded spaces get ignored after certain tags).
Diffstat (limited to 'Zend/zend_highlight.c')
| -rw-r--r-- | Zend/zend_highlight.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/Zend/zend_highlight.c b/Zend/zend_highlight.c index 7f91abe318..7eec296b5a 100644 --- a/Zend/zend_highlight.c +++ b/Zend/zend_highlight.c @@ -71,17 +71,9 @@ ZEND_API void zend_html_puts(const char *s, uint len TSRMLS_DC) while (ptr<end) { if (*ptr==' ') { - /* Series of spaces should be displayed as 's - * whereas single spaces should be displayed as a space - */ - if ((ptr+1) < end && *(ptr+1)==' ') { - do { - zend_html_putc(*ptr); - } while ((++ptr < end) && (*ptr==' ')); - } else { - ZEND_PUTC(*ptr); - ptr++; - } + do { + zend_html_putc(*ptr); + } while ((++ptr < end) && (*ptr==' ')); } else { zend_html_putc(*ptr++); } |
