didou           Sat Feb  3 19:42:43 2007 UTC

  Modified files:              
    /phpdoc/scripts     html_syntax.php 
  Log:
  <br/>ify
  
http://cvs.php.net/viewvc.cgi/phpdoc/scripts/html_syntax.php?r1=1.10&r2=1.11&diff_format=u
Index: phpdoc/scripts/html_syntax.php
diff -u phpdoc/scripts/html_syntax.php:1.10 phpdoc/scripts/html_syntax.php:1.11
--- phpdoc/scripts/html_syntax.php:1.10 Sat Feb  3 19:35:46 2007
+++ phpdoc/scripts/html_syntax.php      Sat Feb  3 19:42:43 2007
@@ -64,7 +64,7 @@
             '<span class="tags">&lt;![<span 
class="keyword">CDATA</span>[</span><span class="cdata">$1</span><span 
class="tags">]]&gt;</span>'
         );
 
-        return '<div class="xmlcode">' . preg_replace($match, $replace, 
$source) . '</div>';
+        return '<div class="xmlcode">' . nl2br(preg_replace($match, $replace, 
$source)) . '</div>';
 }
 
 $files = $_SERVER["argv"];

Reply via email to