CVS update: /cowiki/includes/cowiki/class/parse/

[email protected] 30 May 2005 13:55:02 -0000
Newsgroups gmane.comp.php.cowiki.cvs
Message-ID <[email protected]>
User: cmarble 
Date: 2005/05/30 06:55:02

Modified:
   cowiki/includes/cowiki/class/parse/class.WikiReverseParser.php

Log:
 A step closer to an error-free Parser & ReverseParser. No longer mistreating whitespace in xmldoc. Now ignores the same.
 

File Changes:

Directory: /cowiki/includes/cowiki/class/parse/
===============================================

File [changed]: class.WikiReverseParser.php
Url: http://cowiki.tigris.org/source/browse/cowiki/includes/cowiki/class/parse/class.WikiReverseParser.php?r1=1.18&r2=1.19
Delta lines:  +3 -3
-------------------
--- class.WikiReverseParser.php	29 May 2005 15:39:35 -0000	1.18
+++ class.WikiReverseParser.php	30 May 2005 13:55:00 -0000	1.19
@@ -2,7 +2,7 @@
 
 /**
  *
- * $Id: class.WikiReverseParser.php,v 1.18 2005/05/29 15:39:35 cmarble Exp $
+ * $Id: class.WikiReverseParser.php,v 1.19 2005/05/30 13:55:00 cmarble 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.18 $
+ * @version     $Revision: 1.19 $
  *
  */
 
@@ -724,7 +724,7 @@
 	    echo "cdata ".$sData."\n";
 	}
         if($this->ignoreToc){ return; }
-        if( $sData != '' ) {
+        if( trim($sData) != '' ) {
 	    switch( end($this->aState) ){
 	    case 2:/*WRP_LINK*/
 	        $this->sLink[2] .= trim($sData);