From: <lu...@us...> - 2004-02-28 17:38:33
|
Update of /cvsroot/tikiwiki/tiki/lib/wiki-plugins In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19345/lib/wiki-plugins Modified Files: Tag: BRANCH-1-8 wikiplugin_box.php Log Message: fixed line breaks Index: wikiplugin_box.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/lib/wiki-plugins/wikiplugin_box.php,v retrieving revision 1.8 retrieving revision 1.8.2.1 diff -u -d -r1.8 -r1.8.2.1 --- wikiplugin_box.php 7 Dec 2003 15:59:59 -0000 1.8 +++ wikiplugin_box.php 28 Feb 2004 17:28:57 -0000 1.8.2.1 @@ -29,6 +29,8 @@ $end = "</div></div></td></tr></table>"; // Insert "\n" at data begin if absent (so start-of-line-sensitive syntaxes will be parsed OK) if (substr($data, 1) != "\n") $data = "\n".$data; + // replace any newline char with br + $data = preg_replace("/\\n/", "<br />", $data); return $begin . $data . $end; } |