maven-doxia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject svn commit: r542285 - /maven/doxia/doxia/trunk/doxia-modules/doxia-module-xhtml/src/main/java/org/apache/maven/doxia/module/xhtml/XhtmlSink.java
Date Mon, 28 May 2007 18:03:53 GMT
Author: jvanzyl
Date: Mon May 28 11:03:52 2007
New Revision: 542285

URL: http://svn.apache.org/viewvc?view=rev&rev=542285
Log:
DOXIA-78 Honor "rowspan" and "colspan" attributes for tables
Submitted by: Henning Schmiedehausen


Modified:
    maven/doxia/doxia/trunk/doxia-modules/doxia-module-xhtml/src/main/java/org/apache/maven/doxia/module/xhtml/XhtmlSink.java

Modified: maven/doxia/doxia/trunk/doxia-modules/doxia-module-xhtml/src/main/java/org/apache/maven/doxia/module/xhtml/XhtmlSink.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-modules/doxia-module-xhtml/src/main/java/org/apache/maven/doxia/module/xhtml/XhtmlSink.java?view=diff&rev=542285&r1=542284&r2=542285
==============================================================================
--- maven/doxia/doxia/trunk/doxia-modules/doxia-module-xhtml/src/main/java/org/apache/maven/doxia/module/xhtml/XhtmlSink.java
(original)
+++ maven/doxia/doxia/trunk/doxia-modules/doxia-module-xhtml/src/main/java/org/apache/maven/doxia/module/xhtml/XhtmlSink.java
Mon May 28 11:03:52 2007
@@ -533,15 +533,15 @@
             }
         }
 
-        String cellWidth = "width=\"" + width + "\"";
+        String cellWidth = (width != null) ? " colspan=\"" + width + "\"" : "";
 
         if ( headerRow )
         {
-            write( "<th " );
+            write( "<th" );
         }
         else
         {
-            write( "<td " );
+            write( "<td" );
         }
 
         if ( justif != null )



Mime
View raw message