maven-doxia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ltheu...@apache.org
Subject svn commit: r627448 - /maven/doxia/doxia/trunk/doxia-modules/doxia-module-confluence/src/main/java/org/apache/maven/doxia/module/confluence/parser/table/TableBlockParser.java
Date Wed, 13 Feb 2008 15:04:44 GMT
Author: ltheussl
Date: Wed Feb 13 07:04:38 2008
New Revision: 627448

URL: http://svn.apache.org/viewvc?rev=627448&view=rev
Log:
[DOXIA-215] trailing space after table row was emitted as table cell

Modified:
    maven/doxia/doxia/trunk/doxia-modules/doxia-module-confluence/src/main/java/org/apache/maven/doxia/module/confluence/parser/table/TableBlockParser.java

Modified: maven/doxia/doxia/trunk/doxia-modules/doxia-module-confluence/src/main/java/org/apache/maven/doxia/module/confluence/parser/table/TableBlockParser.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-modules/doxia-module-confluence/src/main/java/org/apache/maven/doxia/module/confluence/parser/table/TableBlockParser.java?rev=627448&r1=627447&r2=627448&view=diff
==============================================================================
--- maven/doxia/doxia/trunk/doxia-modules/doxia-module-confluence/src/main/java/org/apache/maven/doxia/module/confluence/parser/table/TableBlockParser.java
(original)
+++ maven/doxia/doxia/trunk/doxia-modules/doxia-module-confluence/src/main/java/org/apache/maven/doxia/module/confluence/parser/table/TableBlockParser.java
Wed Feb 13 07:04:38 2008
@@ -53,12 +53,14 @@
             throw new IllegalAccessError( "call accept before this ;)" );
         }
 
-         List rows = new ArrayList();
+        List rows = new ArrayList();
 
         String l = line;
 
         do
         {
+            l = l.substring( 0, l.lastIndexOf( "|" ) );
+
             List cells = new ArrayList();
 
             if ( l.startsWith( "||" ) )
@@ -96,7 +98,7 @@
 
             rows.add( new TableRowBlock( cells ) );
         }
-        
+
         while ( ( l = source.getNextLine() ) != null && accept( l, source ) );
 
         assert rows.size() >= 1;



Mime
View raw message