]> granicus.if.org Git - php/commitdiff
MFH: Fixed bug #29338 (unencoded spaces get ignored after certain tags).
authorIlia Alshanetsky <iliaa@php.net>
Sun, 22 May 2005 16:40:49 +0000 (16:40 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sun, 22 May 2005 16:40:49 +0000 (16:40 +0000)
Zend/zend_highlight.c

index 7f91abe318c78809a963d6d1c4d114b80574dd91..7eec296b5a2f14f655a16e50ac879c362f5f9c2e 100644 (file)
@@ -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++);
                }