You are viewing a plain text version of this content. The canonical link for it is here.
Posted to doxia-commits@maven.apache.org by lt...@apache.org on 2009/08/24 09:19:49 UTC

svn commit: r807105 - /maven/doxia/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/sink/XhtmlBaseSink.java

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() );
                 }
             }