cvs: phd /formats xhtml.php

From: Date: Sun, 30 Sep 2007 18:38:47 +0000
Subject: cvs: phd /formats xhtml.php
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-111@lists.php.net to get a copy of this message
bjori Sun Sep 30 18:38:47 2007 UTC Modified files: /phd/formats xhtml.php Log: Make sure there is a space between the name markups http://cvs.php.net/viewvc.cgi/phd/formats/xhtml.php?r1=1.31&r2=1.32&diff_format=u Index: phd/formats/xhtml.php diff -u phd/formats/xhtml.php:1.31 phd/formats/xhtml.php:1.32 --- phd/formats/xhtml.php:1.31 Sun Sep 30 18:30:03 2007 +++ phd/formats/xhtml.php Sun Sep 30 18:38:47 2007 @@ -1,5 +1,5 @@ <?php -/* $Id: xhtml.php,v 1.31 2007/09/30 18:30:03 bjori Exp $ */ +/* $Id: xhtml.php,v 1.32 2007/09/30 18:38:47 bjori Exp $ */ class XHTMLPhDFormat extends PhDFormat { protected $elementmap = array( /* {{{ */ @@ -26,9 +26,9 @@ 'colophon' => 'format_chunk', 'copyright' => 'format_copyright', 'editor' => 'div', /* Docbook-xsl prints "edited by" */ - 'firstname' => 'span', - 'surname' => 'span', - 'othername' => 'span', + 'firstname' => 'format_name', + 'surname' => 'format_name', + 'othername' => 'format_name', 'optional' => 'span', 'honorific' => 'span', 'glossary' => array( @@ -286,6 +286,12 @@ } return '</div>'; } + public function format_name($open, $name, $attrs) { + if ($open) { + return ' <span class="'.$name.'">'; + } + return '</span> '; + } public function format_container_chunk($open, $name, $attrs) { if ($open) {

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