| Gabor Hojtsy 2006-09-13, 3:58 am |
| 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/phpwe...4&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/phpwe...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/phpwe...7&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;
|