cvs: phpweb /include layout.inc

From: Date: Wed, 30 Oct 2002 08:42:00 +0000
Subject: cvs: phpweb /include layout.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-13301@lists.php.net to get a copy of this message
goba Wed Oct 30 03:42:00 2002 EDT Modified files: /phpweb/include layout.inc Log: Preserve spacing in examples Index: phpweb/include/layout.inc diff -u phpweb/include/layout.inc:1.101 phpweb/include/layout.inc:1.102 --- phpweb/include/layout.inc:1.101 Fri Oct 18 10:26:08 2002 +++ phpweb/include/layout.inc Wed Oct 30 03:42:00 2002 @@ -1,5 +1,5 @@ <?php -/* $Id: layout.inc,v 1.101 2002/10/18 14:26:08 sander Exp $ */ +/* $Id: layout.inc,v 1.102 2002/10/30 08:42:00 goba Exp $ */ # spacer() # print a IMG tag for a sized spacer GIF @@ -387,6 +387,9 @@ if (function_exists("wordwrap")) { $text = wordwrap($text); } + + // Preserve spacing of user notes + $text = str_replace(" ", " &nbsp;", $text); $text = "<code class=\"note\">".$text."</code>"; return $text;

« previous php.mirrors (#13301) next »