cvs: phpweb /include layout.inc
| From: | Gabor Hojtsy | Date: | Mon, 24 Nov 2003 11:19:55 +0000 |
| Subject: | cvs: phpweb /include layout.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-22173@lists.php.net to get a copy of this message | ||
goba Mon Nov 24 06:19:55 2003 EDT
Modified files:
/phpweb/include layout.inc
Log:
first make the nbsps spaces, and then convert two spaces after each other to one nbsp and a space
this will hopefully fix the layout issue of http://us3.php.net/manual/en/faq.html.php
without introducing new problems
Index: phpweb/include/layout.inc
diff -u phpweb/include/layout.inc:1.193 phpweb/include/layout.inc:1.194
--- phpweb/include/layout.inc:1.193 Sun Oct 26 11:02:12 2003
+++ phpweb/include/layout.inc Mon Nov 24 06:19:54 2003
@@ -1,5 +1,5 @@
<?php
-/* $Id: layout.inc,v 1.193 2003/10/26 16:02:12 goba Exp $ */
+/* $Id: layout.inc,v 1.194 2003/11/24 11:19:54 goba Exp $ */
// Set the static content root differently on php.net
$_SERVER['STATIC_ROOT'] = ($MYSITE == 'http://www.php.net/') ?
@@ -25,13 +25,15 @@
// Fix output to use CSS classes and wrap well
$highlighted = '<div class="phpcode">' . str_replace(
array(
+ ' '
'<br />',
'<font color="',
'</font>',
"\n ",
- ' '
+ ' '
),
array(
+ ' ',
"<br />\n",
'<span class="',
'</span>',