cvs: pear /Text_Wiki/Text/Wiki/Render/Xhtml Wikilink.php

From: Date: Tue, 28 Feb 2006 02:25:13 +0000
Subject: cvs: pear /Text_Wiki/Text/Wiki/Render/Xhtml Wikilink.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-38717@lists.php.net to get a copy of this message
justinpatrin Tue Feb 28 02:25:13 2006 UTC Modified files: /pear/Text_Wiki/Text/Wiki/Render/Xhtml Wikilink.php Log: Deak with the case where the text is empty - This allows the parser to not set text when there is no text given for a page -- and thus allows *really* proper wikilink rendering in other dialects http://cvs.php.net/viewcvs.cgi/pear/Text_Wiki/Text/Wiki/Render/Xhtml/Wikilink.php?r1=1.15&r2=1.16&diff_format=u Index: pear/Text_Wiki/Text/Wiki/Render/Xhtml/Wikilink.php diff -u pear/Text_Wiki/Text/Wiki/Render/Xhtml/Wikilink.php:1.15 pear/Text_Wiki/Text/Wiki/Render/Xhtml/Wikilink.php:1.16 --- pear/Text_Wiki/Text/Wiki/Render/Xhtml/Wikilink.php:1.15 Tue Feb 28 02:06:18 2006 +++ pear/Text_Wiki/Text/Wiki/Render/Xhtml/Wikilink.php Tue Feb 28 02:25:13 2006 @@ -9,7 +9,7 @@ * @package Text_Wiki * @author Paul M. Jones <pmjones@php.net> * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 - * @version CVS: $Id: Wikilink.php,v 1.15 2006/02/28 02:06:18 justinpatrin Exp $ + * @version CVS: $Id: Wikilink.php,v 1.16 2006/02/28 02:25:13 justinpatrin Exp $ * @link http://pear.php.net/package/Text_Wiki */ @@ -162,6 +162,9 @@ $end = '<a'.$css.' href="'.$href.'">'.$new.'</a>'; } } + if (!strlen($text)) { + $start .= $page; + } if (isset($type)) { switch ($type) { case 'start':

« previous php.pear.cvs (#38717) next »