cvs: phpweb /include layout.inc
| From: | Andrew Lindeman | Date: | Sat, 03 May 2003 21:36:30 +0000 |
| Subject: | cvs: phpweb /include layout.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-17270@lists.php.net to get a copy of this message | ||
alindeman Sat May 3 17:36:30 2003 EDT
Modified files:
/phpweb/include layout.inc
Log:
<p> tags in user notes really screw up the style of the page. Make sure these tags stay in
the 'code' class
Index: phpweb/include/layout.inc
diff -u phpweb/include/layout.inc:1.141 phpweb/include/layout.inc:1.142
--- phpweb/include/layout.inc:1.141 Sat May 3 12:29:40 2003
+++ phpweb/include/layout.inc Sat May 3 17:36:30 2003
@@ -1,6 +1,6 @@
<?php
-/* $Id: layout.inc,v 1.141 2003/05/03 16:29:40 goba Exp $ */
+/* $Id: layout.inc,v 1.142 2003/05/03 21:36:30 alindeman Exp $ */
// Print an image for a sized spacer
function spacer($width = 1, $height = 1, $return = false, $align = false, $extras = false)
@@ -398,6 +398,9 @@
$text=str_replace(htmlspecialchars($f), $f, $text);
$text=str_replace(htmlspecialchars(strtoupper($f)), $f, $text);
}
+
+ /* Make sure <p> tags stay in the CSS "code" class*/
+ $text = str_replace (array ('<P>', '<p>'), '<p
class="code">', $text);
/* preserve linebreaks */
$text = str_replace("\n", "<br>", $text);