cvs: phd(PHD_0_4) / package.xml /formats pdf.php /themes/pear pearchm.php peartheme.php
| From: | Christian Weiske | Date: | Sun, 25 Jan 2009 09:39:04 +0000 |
| Subject: | cvs: phd(PHD_0_4) / package.xml /formats pdf.php /themes/pear pearchm.php peartheme.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-3077@lists.php.net to get a copy of this message | ||
cweiske Sun Jan 25 09:39:04 2009 UTC
Modified files: (Branch: PHD_0_4)
/phd package.xml
/phd/formats pdf.php
/phd/themes/pear pearchm.php peartheme.php
Log:
Merge changes from head to 0_4, adjust package.xml
http://cvs.php.net/viewvc.cgi/phd/package.xml?r1=1.74.2.19.2.36&r2=1.74.2.19.2.37&diff_format=u
Index: phd/package.xml
diff -u phd/package.xml:1.74.2.19.2.36 phd/package.xml:1.74.2.19.2.37
--- phd/package.xml:1.74.2.19.2.36 Sat Jan 17 12:15:08 2009
+++ phd/package.xml Sun Jan 25 09:39:02 2009
@@ -52,7 +52,8 @@
</stability>
<license uri="http://www.opensource.org/licenses/bsd-license.php">BSD
Style</license>
<notes>
- ....
+ - Add support for <package> in pear theme (Christian)
+ - Replace ereg_replace with preg_replace
</notes>
<contents>
@@ -501,7 +502,7 @@
- Fixed bug#46931 (wrong order of the META tag in the HEAD element). (Chen Gang)
- Fixed bug#46924 (parameter elements force incorrect line breaks). (Hannes)
- Fixed bug#46726 (Incorrect HTML output). (Hannes)
- - Fixed bug#46714 (change deprecated ereg_replace(Since PHP 5.3.0) to preg_replace). (Chen
Gang)
+ - Fixed bug#46714 (change deprecated ereg_replace(Since PHP 5.3.0) to preg_replace). (Chen
Gang)
- Fixed bug#45570 (PhD doesn't use the colspec "align" attribute in xhtml
output). (Hannes)
- Fixed bug#45318 (table colspec rendering issues). (Hannes)
- Fixed bug#44598 (Much space on 'expected output' section). (Hannes)
http://cvs.php.net/viewvc.cgi/phd/formats/pdf.php?r1=1.7.4.3&r2=1.7.4.3.2.1&diff_format=u
Index: phd/formats/pdf.php
diff -u phd/formats/pdf.php:1.7.4.3 phd/formats/pdf.php:1.7.4.3.2.1
--- phd/formats/pdf.php:1.7.4.3 Sat Aug 23 13:51:11 2008
+++ phd/formats/pdf.php Sun Jan 25 09:39:03 2009
@@ -334,7 +334,7 @@
return "";
}
- $ret = utf8_decode(trim(ereg_replace( "[ \n\t]+", ' ', $str)));
+ $ret = utf8_decode(trim(preg_replace('/[ \n\t]+/', ' ', $str)));
// No whitespace if current text value begins with ',', ';',
':', '.'
if (strncmp($ret, ",", 1) && strncmp($ret, ";", 1) &&
strncmp($ret, ":", 1) && strncmp($ret, ".", 1))
$this->pdfDoc->appendText(" " . $ret);
@@ -572,7 +572,7 @@
}
public function format_link_text($value, $tag) {
- $value = trim(ereg_replace( "[ \n\t]+", ' ', $value));
+ $value = trim(preg_replace('/[ \n\t]+/', ' ', $value));
if (isset($this->cchunk["href"]) &&
$this->cchunk["href"]) {
$this->pdfDoc->add(PdfWriter::URL_ANNOTATION, array(chr(187) . chr(160) . $value,
$this->cchunk["href"])); // links with >> symbol
} elseif (isset($this->cchunk["linkend"]) && $linkend =
$this->cchunk["linkend"]) {
@@ -586,7 +586,7 @@
}
public function format_function_text($value, $tag, $display_value = null) {
- $value = trim(ereg_replace( "[ \n\t]+", ' ', $value));
+ $value = trim(preg_replace('/[ \n\t]+/', ' ', $value));
if ($display_value === null) {
$display_value = $value;
}
@@ -1076,14 +1076,14 @@
// }}} Footnotes & Callouts
public function format_quote_text($value, $tag) {
- $value = trim(ereg_replace( "[ \n\t]+", ' ', $value));
+ $value = trim(preg_replace('/[ \n\t]+/', ' ', $value));
$this->pdfDoc->appendText(' "'.$value.'"');
return "";
}
public function format_refname_text($value, $tag) {
$this->cchunk["refname"][] = $value;
- $this->pdfDoc->appendText(trim(ereg_replace( "[ \n\t]+", ' ',
$value)));
+ $this->pdfDoc->appendText(trim(preg_replace('/[ \n\t]+/', ' ',
$value)));
return "";
}
http://cvs.php.net/viewvc.cgi/phd/themes/pear/pearchm.php?r1=1.4.2.2.2.3&r2=1.4.2.2.2.4&diff_format=u
Index: phd/themes/pear/pearchm.php
diff -u phd/themes/pear/pearchm.php:1.4.2.2.2.3 phd/themes/pear/pearchm.php:1.4.2.2.2.4
--- phd/themes/pear/pearchm.php:1.4.2.2.2.3 Fri Nov 7 22:20:16 2008
+++ phd/themes/pear/pearchm.php Sun Jan 25 09:39:04 2009
@@ -339,18 +339,28 @@
return parent::format_root_chunk($open, $name, $attrs, $props);
}
- public function header($id) {
+ /**
+ * Generate the HTML header.
+ * Uses parent::header() and adds some additional stylesheets.
+ *
+ * @param string $id Page ID
+ *
+ * @return string Header HTML
+ */
+ public function header($id)
+ {
$header = parent::header($id);
// Add CSS link to <head>
- $header = ereg_replace('( *)</head>','\\1 <link
media="all" rel="stylesheet" type="text/css"
href="reset-fonts.css"/>
- <link media="all" rel="stylesheet" type="text/css"
href="style.css"/>
- <link media="all" rel="stylesheet" href="manual.css"/>
-\\1</head>', $header);
+ $header = preg_replace('#( *)</head>#',
+ '$1 <link media="all" rel="stylesheet"
type="text/css" href="reset-fonts.css"/>
+$1 <link media="all" rel="stylesheet" type="text/css"
href="style.css"/>
+$1 <link media="all" rel="stylesheet" href="manual.css"/>
+$1</head>',
+ $header
+ );
return $header;
}
-
-
private function collectContent($attrs) {
if (isset($attrs[PhDReader::XMLNS_XML]["id"])) {
$id = $attrs[PhDReader::XMLNS_XML]["id"];
http://cvs.php.net/viewvc.cgi/phd/themes/pear/peartheme.php?r1=1.8.2.2.2.2&r2=1.8.2.2.2.3&diff_format=u
Index: phd/themes/pear/peartheme.php
diff -u phd/themes/pear/peartheme.php:1.8.2.2.2.2 phd/themes/pear/peartheme.php:1.8.2.2.2.3
--- phd/themes/pear/peartheme.php:1.8.2.2.2.2 Fri Nov 7 22:40:56 2008
+++ phd/themes/pear/peartheme.php Sun Jan 25 09:39:04 2009
@@ -82,6 +82,7 @@
'menuchoice' => 'format_suppressed_tags',
'methodname' => 'tt',
'note' => 'format_admonition',
+ 'package' => 'strong',
'para' => array(
/* DEFAULT */ false,
'warning' => 'format_warning_para',