CVS update: /cowiki/includes/cowiki/class/render/
[email protected] 9 Apr 2005 23:35:00 -0000
| Newsgroups | gmane.comp.php.cowiki.cvs |
|---|---|
| Message-ID | <[email protected]> |
User: dgorski Date: 05/04/09 16:35:00 Modified: /cowiki/includes/cowiki/class/render/ class.FrontHtmlTransformer.php Log: Revert to the state that has worked for Boron release and plus a small fix after Boron, that is mentioned in the ChangeLog (bug #202). Until there is no other fully tested parser, there shouldn't be any half-hearted changes. File Changes: Directory: /cowiki/includes/cowiki/class/render/ ================================================ File [changed]: class.FrontHtmlTransformer.php Url: http://cowiki.tigris.org/source/browse/cowiki/includes/cowiki/class/render/class.FrontHtmlTransformer.php?r1=1.42&r2=1.43 Delta lines: +1 -21 -------------------- --- class.FrontHtmlTransformer.php 15 Mar 2005 19:48:53 -0000 1.42 +++ class.FrontHtmlTransformer.php 9 Apr 2005 23:35:00 -0000 1.43 @@ -2,7 +2,7 @@ /** * - * $Id: class.FrontHtmlTransformer.php,v 1.42 2005/03/15 19:48:53 cmarble Exp $ + * $Id: class.FrontHtmlTransformer.php,v 1.43 2005/04/09 23:35:00 dgorski Exp $ * * This file is part of coWiki. coWiki is free software under the terms of * the GNU General Public License (GPL). Read the LICENSE file. If you did @@ -17,7 +17,7 @@ * @author Daniel T. Gorski, <[email protected]> * @copyright (C) Daniel T. Gorski, {@link http://www.develnet.org} * @license http://www.gnu.org/licenses/gpl.html - * @version $Revision: 1.42 $ + * @version $Revision: 1.43 $ * */ @@ -227,12 +227,6 @@ $sStr ); - $sStr = preg_replace_callback( - '=<(left|center|right)>(.*)</\1>=Usi', - array($this, '_transformJustification'), - $sStr - ); - // Get rid of remaining XML elements $aArr = array( '<toc>', '</toc>', @@ -726,20 +720,6 @@ $sStr .= $aMatches[1]; $sStr .= '</blockquote>'; - return $sStr; - } - - // -------------------------------------------------------------------- - - protected function &_transformJustification(&$aMatches) { - $sStr = '<div width="100%" style="text-align:'.$aMatches[1].'">'; - $sStr .= $aMatches[2]; - $sStr .= '</div>'; - /* - $sStr = '<p width="100%" style="text-align:'.$aMatches[1].'">'; - $sStr .= $aMatches[2]; - $sStr .= '</p>'; - */ return $sStr; }