Re: cvs: phd /formats xhtml.php

From: Date: Sat, 03 Jan 2009 14:55:30 +0000
Subject: Re: cvs: phd /formats xhtml.php
References: 1  Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-2928@lists.php.net to get a copy of this message
On Sat, Jan 3, 2009 at 13:55, Nilgün Belma Bugüner <nilgun@php.net> wrote: > nilgun Sat Jan 3 12:55:22 2009 UTC > > Modified files: > /phd/formats xhtml.php > Log: > add anchor for table rows > > See: manual/en/http.configuration.php, link to http.force_exit > > > http://cvs.php.net/viewvc.cgi/phd/formats/xhtml.php?r1=1.83&r2=1.84&diff_format=u > Index: phd/formats/xhtml.php > diff -u phd/formats/xhtml.php:1.83 phd/formats/xhtml.php:1.84 > --- phd/formats/xhtml.php:1.83 Fri Jan 2 14:44:23 2009 > +++ phd/formats/xhtml.php Sat Jan 3 12:55:22 2009 > @@ -1,5 +1,5 @@ > <?php > -/* $Id: xhtml.php,v 1.83 2009/01/02 14:44:23 bjori Exp $ */ > +/* $Id: xhtml.php,v 1.84 2009/01/03 12:55:22 nilgun Exp $ */ > > class XHTMLPhDFormat extends PhDFormat { > protected $elementmap = array( /* {{{ */ > @@ -1374,9 +1374,13 @@ > } > public function format_row($open, $name, $attrs) { > if ($open) { > + $idstr = ''; > + if (isset($attrs[PhDReader::XMLNS_XML]['id'])) { > + $idstr = ' id="'. > $attrs[PhDReader::XMLNS_XML]['id'].. '"'; > + } > PhDFormat::initRow(); > $valign = PhDFormat::valign($attrs[PhDReader::XMLNS_DOCBOOK]); > - return '<tr valign="' .$valign. '">'; > + return '<tr'.$idstr.' valign="' .$valign. > '">'; Nice catch! -Hannes

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