maven-doxia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ltheu...@apache.org
Subject svn commit: r807105 - /maven/doxia/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/sink/XhtmlBaseSink.java
Date Mon, 24 Aug 2009 07:19:49 GMT
Author: ltheussl
Date: Mon Aug 24 07:19:49 2009
New Revision: 807105

URL: http://svn.apache.org/viewvc?rev=807105&view=rev
Log:
Fix bug with  table attributes introduced in r806515, fixes test failures of site renderer.

Modified:
    maven/doxia/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/sink/XhtmlBaseSink.java

Modified: maven/doxia/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/sink/XhtmlBaseSink.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/sink/XhtmlBaseSink.java?rev=807105&r1=807104&r2=807105&view=diff
==============================================================================
--- maven/doxia/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/sink/XhtmlBaseSink.java
(original)
+++ maven/doxia/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/sink/XhtmlBaseSink.java
Mon Aug 24 07:19:49 2009
@@ -223,7 +223,7 @@
      */
     protected int[] getCellJustif()
     {
-        return (int[])this.cellJustifStack.getLast();
+        return (int[]) this.cellJustifStack.getLast();
     }
 
     /**
@@ -1123,7 +1123,7 @@
         }
 
         // start table with tableRows
-        if ( this.tableAttributes == null )
+        if ( attributes == null )
         {
             this.tableAttributes = new SinkEventAttributeSet( 0 );
         }
@@ -2028,7 +2028,8 @@
                     Object key = names.nextElement();
                     Object value = att.getAttribute( key );
 
-                    ( (PrettyPrintXMLWriter) this.tableCaptionXMLWriterStack.getLast() ).addAttribute(
key.toString(), value.toString() );
+                    ( (PrettyPrintXMLWriter) this.tableCaptionXMLWriterStack.getLast() )
+                            .addAttribute( key.toString(), value.toString() );
                 }
             }
 



Mime
View raw message