cvs: phpweb /include shared-manual.inc /styles print.css site.css

From: Date: Wed, 13 Sep 2006 09:01:11 +0000
Subject: cvs: phpweb /include shared-manual.inc /styles print.css site.css
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-32578@lists.php.net to get a copy of this message
goba Wed Sep 13 09:01:11 2006 UTC Modified files: /phpweb/include shared-manual.inc /phpweb/styles print.css site.css Log: -fix print sheet: we need to null the margin - empower the browser to wrap the function names with an invisible space (this is needed to support firefox http://cvs.php.net/viewvc.cgi/phpweb/include/shared-manual.inc?r1=1.223&r2=1.224&diff_format=u Index: phpweb/include/shared-manual.inc diff -u phpweb/include/shared-manual.inc:1.223 phpweb/include/shared-manual.inc:1.224 --- phpweb/include/shared-manual.inc:1.223 Tue Sep 12 12:34:18 2006 +++ phpweb/include/shared-manual.inc Wed Sep 13 09:01:11 2006 @@ -1,6 +1,6 @@ <?php // -*- C++ -*- -// $Id: shared-manual.inc,v 1.223 2006/09/12 12:34:18 goba Exp $ +// $Id: shared-manual.inc,v 1.224 2006/09/13 09:01:11 goba Exp $ /* @@ -130,12 +130,12 @@ $liclass = ($url == $PGI['this'][0]) ? ' class="active"' : ""; // There are some very long function names, which - // make the TOC be too wide, so wrap them + // make the TOC too wide, so enable the browser to wrap them // eg: xml_set_processing_instruction_handler - if (strlen($title) > 28 && preg_match("!^[a-z0-9_]+$!", $title)) { - $title = str_replace("_", " ", $title); - $title = wordwrap($title, 28, "<br>"); - $title = str_replace(array(" ", "<br>"), array("_", "<br />_"), $title); + // DOMElement->getElementsByTagNameNS() + if (preg_match("!^[a-zA-Z0-9_>()-]+$!", $title)) { + $wrap = '<span class="invisible"> </span>'; + $title = str_replace(array('_', '->'), array("_$wrap", "->$wrap"), $title); } // Print out the TOC item using a <div> http://cvs.php.net/viewvc.cgi/phpweb/styles/print.css?r1=1.1&r2=1.2&diff_format=u Index: phpweb/styles/print.css diff -u phpweb/styles/print.css:1.1 phpweb/styles/print.css:1.2 --- phpweb/styles/print.css:1.1 Tue Sep 12 20:54:49 2006 +++ phpweb/styles/print.css Wed Sep 13 09:01:11 2006 @@ -6,4 +6,5 @@ #content { width: 100%; + margin: 0; } http://cvs.php.net/viewvc.cgi/phpweb/styles/site.css?r1=1.26&r2=1.27&diff_format=u Index: phpweb/styles/site.css diff -u phpweb/styles/site.css:1.26 phpweb/styles/site.css:1.27 --- phpweb/styles/site.css:1.26 Tue Sep 12 20:21:22 2006 +++ phpweb/styles/site.css Wed Sep 13 09:01:11 2006 @@ -119,6 +119,10 @@ background-color: transparent; } +.invisible { + display: none; +} + /* Content are styles ----------------------------------------------------- */ #content { padding: 10px;

« previous php.mirrors (#32578) next »