iliaa Mon Jun 20 00:04:06 2005 EDT
Modified files:
/livedocs style_mapping.php
Log:
non-code comments can be wrapped.
http://cvs.php.net/diff.php/livedocs/style_mapping.php?r1=1.27&r2=1.28&ty=u
Index: livedocs/style_mapping.php
diff -u livedocs/style_mapping.php:1.27 livedocs/style_mapping.php:1.28
--- livedocs/style_mapping.php:1.27 Sun Jun 19 17:22:39 2005
+++ livedocs/style_mapping.php Mon Jun 20 00:04:06 2005
@@ -18,7 +18,7 @@
// | Helper functions for formatting elements |
// +----------------------------------------------------------------------+
//
-// $Id: style_mapping.php,v 1.27 2005/06/19 21:22:39 iliaa Exp $
+// $Id: style_mapping.php,v 1.28 2005/06/20 04:04:06 iliaa Exp $
// almost XPATH.. ;-)
$map = array(
@@ -350,7 +350,7 @@
$content = highlight_php_code($content);
$node->attributes['role'] = 'php';
} else {
- $content =
'<pre>'.htmlspecialchars($content).'</pre>';
+ $content = nl2br(htmlspecialchars($content));
}
break;