cvs: phd / package.xml /formats xhtml.php

From: Date: Sun, 30 Dec 2007 13:52:12 +0000
Subject: cvs: phd / package.xml /formats xhtml.php
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-933@lists.php.net to get a copy of this message
bjori Sun Dec 30 13:52:12 2007 UTC Modified files: /phd package.xml /phd/formats xhtml.php Log: Seperate mutliple <term>s with new lines (reported by Gwynne) http://cvs.php.net/viewvc.cgi/phd/package.xml?r1=1.16&r2=1.17&diff_format=u Index: phd/package.xml diff -u phd/package.xml:1.16 phd/package.xml:1.17 --- phd/package.xml:1.16 Sun Dec 30 13:50:25 2007 +++ phd/package.xml Sun Dec 30 13:52:12 2007 @@ -24,6 +24,7 @@ </stability> <license uri="http://www.opensource.org/licenses/bsd-license.php">BSD Style</license> <notes> + - Multiple &lt;term&gt;s should be line seperated - Fixed autogenerated links to methods (Edward Z.) - Compressed methodnames in classsynopsis (Edward Z.) - Added HTML headers for the bightml theme http://cvs.php.net/viewvc.cgi/phd/formats/xhtml.php?r1=1.44&r2=1.45&diff_format=u Index: phd/formats/xhtml.php diff -u phd/formats/xhtml.php:1.44 phd/formats/xhtml.php:1.45 --- phd/formats/xhtml.php:1.44 Tue Dec 4 11:27:17 2007 +++ phd/formats/xhtml.php Sun Dec 30 13:52:12 2007 @@ -1,5 +1,5 @@ <?php -/* $Id: xhtml.php,v 1.44 2007/12/04 11:27:17 bjori Exp $ */ +/* $Id: xhtml.php,v 1.45 2007/12/30 13:52:12 bjori Exp $ */ class XHTMLPhDFormat extends PhDFormat { protected $elementmap = array( /* {{{ */ @@ -195,7 +195,7 @@ 'synopsis' => 'pre', 'tag' => 'code', 'table' => 'format_table', - 'term' => 'span', + 'term' => 'format_term', 'tfoot' => 'format_th', 'thead' => 'format_th', 'tgroup' => 'format_tgroup', @@ -634,6 +634,15 @@ } return "</dd>\n"; } + public function format_term($open, $name, $attrs, $props) { + if ($open) { + if ($props["sibling"] == $name) { + return '<br /><span class="' .$name. '">'; + } + return '<span class="' .$name. '">'; + } + return "</span>\n"; + } public function format_userinput($open, $name, $attrs) { if ($open) { return '<strong class="' .$name. '"><code>';

« previous php.doc.cvs (#933) next »