summaryrefslogtreecommitdiff
path: root/Zend/zend_highlight.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2005-05-22 16:40:06 +0000
committerIlia Alshanetsky <iliaa@php.net>2005-05-22 16:40:06 +0000
commit76c05604a657f2b0d48ed3aaa4186d0a3309d7a8 (patch)
treec5e483d2736b560c8487a3d856c14eb8a46dec3a /Zend/zend_highlight.c
parenta186549ec0344195a82a8434bda530a250e1280f (diff)
downloadphp-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.c14
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 &nbsp;'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++);
}