iliaa Sun May 22 12:40:06 2005 EDT
Modified files:
/ZendEngine2 zend_highlight.c
Log:
Fixed bug #29338 (unencoded spaces get ignored after certain tags).
http://cvs.php.net/diff.php/ZendEngine2/zend_highlight.c?r1=1.47&r2=1.48&ty=u
Index: ZendEngine2/zend_highlight.c
diff -u ZendEngine2/zend_highlight.c:1.47 ZendEngine2/zend_highlight.c:1.48
--- ZendEngine2/zend_highlight.c:1.47 Sun Jan 2 18:53:43 2005
+++ ZendEngine2/zend_highlight.c Sun May 22 12:40:06 2005
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_highlight.c,v 1.47 2005/01/02 23:53:43 iliaa Exp $ */
+/* $Id: zend_highlight.c,v 1.48 2005/05/22 16:40:06 iliaa Exp $ */
#include "zend.h"
#include <zend_language_parser.h>
@@ -71,17 +71,9 @@
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++);
}
--
Zend Engine CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
|