From: <var...@us...> - 2012-04-10 12:38:07
|
Revision: 8263 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8263&view=rev Author: vargenau Date: 2012-04-10 12:37:58 +0000 (Tue, 10 Apr 2012) Log Message: ----------- Use class "tt" Modified Paths: -------------- trunk/lib/InlineParser.php Modified: trunk/lib/InlineParser.php =================================================================== --- trunk/lib/InlineParser.php 2012-04-10 12:17:12 UTC (rev 8262) +++ trunk/lib/InlineParser.php 2012-04-10 12:37:58 UTC (rev 8263) @@ -686,8 +686,7 @@ } function markup ($match, $body) { - $tag = 'tt'; - return new HtmlElement($tag, $body); + return new HtmlElement('span', array('class' => 'tt'), $body); } } @@ -795,7 +794,7 @@ function markup ($match, $body) { switch ($match) { case '*': return new HtmlElement('b', $body); - case '=': return new HtmlElement('tt', $body); + case '=': return new HtmlElement('span', array('class' => 'tt'), $body); case '_': return new HtmlElement('i', $body); } } @@ -1031,7 +1030,7 @@ function markup ($match) { // Remove {{{ and }}} - return new HtmlElement('tt', substr($match, 3, -3)); + return new HtmlElement('span', array('class' => 'tt'), substr($match, 3, -3)); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |