cvs: phd /formats xhtml.php /include PhDErrors.php
| From: | Hannes Magnusson | Date: | Sun, 28 Dec 2008 16:22:43 +0000 |
| Subject: | cvs: phd /formats xhtml.php /include PhDErrors.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-2855@lists.php.net to get a copy of this message | ||
bjori Sun Dec 28 16:22:43 2008 UTC
Modified files:
/phd/formats xhtml.php
/phd/include PhDErrors.php
Log:
MFB: Don't enable BROKEN_LINKS reporting by default
MFB: Automatically create anchors for refsect roles
http://cvs.php.net/viewvc.cgi/phd/formats/xhtml.php?r1=1.79&r2=1.80&diff_format=u
Index: phd/formats/xhtml.php
diff -u phd/formats/xhtml.php:1.79 phd/formats/xhtml.php:1.80
--- phd/formats/xhtml.php:1.79 Thu Dec 18 20:27:08 2008
+++ phd/formats/xhtml.php Sun Dec 28 16:22:43 2008
@@ -1,5 +1,5 @@
<?php
-/* $Id: xhtml.php,v 1.79 2008/12/18 20:27:08 bjori Exp $ */
+/* $Id: xhtml.php,v 1.80 2008/12/28 16:22:43 bjori Exp $ */
class XHTMLPhDFormat extends PhDFormat {
protected $elementmap = array( /* {{{ */
@@ -397,6 +397,7 @@
),
"tablefootnotes" => array(
),
+ "chunkd_id" => null,
);
public function __construct(array $IDs) {
@@ -636,6 +637,7 @@
if ($name === "refentry") {
//$class .= " -rel-posting";
}
+ $this->cchunk["chunk_id"] =
$attrs[PhDReader::XMLNS_XML]["id"];
return '<div id="' .$attrs[PhDReader::XMLNS_XML]["id"].
'" class="' .$class. '">';
}
return '<div class="' .$name. '">';
@@ -676,7 +678,7 @@
$attrs[PhDReader::XMLNS_DOCBOOK]["role"] = "unknown";
}
$this->role = $role = $attrs[PhDReader::XMLNS_DOCBOOK]["role"];
- return '<div class="' .$name.' ' .$role.
'">';
+ return '<a name="' .$this->cchunk["chunk_id"].
'.' .$role. '"></a><div class="' .$name.' '
.$role. '">';
}
$this->role = null;
return "</div>\n";
http://cvs.php.net/viewvc.cgi/phd/include/PhDErrors.php?r1=1.4&r2=1.5&diff_format=u
Index: phd/include/PhDErrors.php
diff -u phd/include/PhDErrors.php:1.4 phd/include/PhDErrors.php:1.5
--- phd/include/PhDErrors.php:1.4 Sat Dec 27 22:16:38 2008
+++ phd/include/PhDErrors.php Sun Dec 28 16:22:43 2008
@@ -1,5 +1,5 @@
<?php
-/* $Id: PhDErrors.php,v 1.4 2008/12/27 22:16:38 bjori Exp $ */
+/* $Id: PhDErrors.php,v 1.5 2008/12/28 16:22:43 bjori Exp $ */
/* {{{ PhD error & message handler */
@@ -21,7 +21,7 @@
define('VERBOSE_BROKEN_LINKS', VERBOSE_NOVERSION << 1);
define('VERBOSE_ALL', (VERBOSE_BROKEN_LINKS << 1)-1);
-define('VERBOSE_DEFAULT',
(VERBOSE_ALL^(VERBOSE_PARTIAL_CHILD_READING|VERBOSE_CHUNK_WRITING|VERBOSE_NOVERSION)));
+define('VERBOSE_DEFAULT',
(VERBOSE_ALL^(VERBOSE_PARTIAL_CHILD_READING|VERBOSE_CHUNK_WRITING|VERBOSE_NOVERSION|VERBOSE_BROKEN_LINKS)));
$olderrrep = error_reporting();
error_reporting($olderrrep | VERBOSE_DEFAULT);