maven-doxia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ltheu...@apache.org
Subject svn commit: r591328 - /maven/doxia/doxia/trunk/doxia-book/src/main/java/org/apache/maven/doxia/book/services/renderer/xdoc/AbstractXdocBookSink.java
Date Fri, 02 Nov 2007 13:45:29 GMT
Author: ltheussl
Date: Fri Nov  2 06:45:29 2007
New Revision: 591328

URL: http://svn.apache.org/viewvc?rev=591328&view=rev
Log:
Correctly inherit head elements from XdocSink

Modified:
    maven/doxia/doxia/trunk/doxia-book/src/main/java/org/apache/maven/doxia/book/services/renderer/xdoc/AbstractXdocBookSink.java

Modified: maven/doxia/doxia/trunk/doxia-book/src/main/java/org/apache/maven/doxia/book/services/renderer/xdoc/AbstractXdocBookSink.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-book/src/main/java/org/apache/maven/doxia/book/services/renderer/xdoc/AbstractXdocBookSink.java?rev=591328&r1=591327&r2=591328&view=diff
==============================================================================
--- maven/doxia/doxia/trunk/doxia-book/src/main/java/org/apache/maven/doxia/book/services/renderer/xdoc/AbstractXdocBookSink.java
(original)
+++ maven/doxia/doxia/trunk/doxia-book/src/main/java/org/apache/maven/doxia/book/services/renderer/xdoc/AbstractXdocBookSink.java
Fri Nov  2 06:45:29 2007
@@ -22,6 +22,8 @@
 import java.io.Writer;
 import java.util.Locale;
 
+import javax.swing.text.html.HTML.Tag;
+
 import org.apache.maven.doxia.module.xdoc.XdocSink;
 import org.codehaus.plexus.i18n.I18N;
 import org.codehaus.plexus.util.StringUtils;
@@ -53,47 +55,6 @@
     }
 
     /**
-     * @see org.apache.maven.doxia.module.xdoc.XdocSink#head()
-     */
-    public void head()
-    {
-        resetState();
-
-        setHeadFlag( true );
-
-        write( "<?xml version=\"1.0\" ?>" + EOL );
-
-        write( "<document>" + EOL );
-
-        write( "<properties>" + EOL );
-
-    }
-
-    /**
-     * @see org.apache.maven.doxia.module.xdoc.XdocSink#head_()
-     */
-    public void head_()
-    {
-        setHeadFlag( false );
-
-        write( "</properties>" + EOL );
-    }
-
-    /**
-     * @see org.apache.maven.doxia.module.xdoc.XdocSink#author_()
-     */
-    public void author_()
-    {
-        if ( getBuffer().length() > 0 )
-        {
-            write( "<author>" );
-            content( getBuffer().toString() );
-            write( "</author>" + EOL );
-            resetBuffer();
-        }
-    }
-
-    /**
      * @see org.apache.maven.doxia.module.xdoc.XdocSink#date_()
      */
     public void date_()
@@ -106,7 +67,7 @@
      */
     public void body()
     {
-        write( "<body>" + EOL );
+        writeStartTag( Tag.BODY );
 
         navigationPanel();
 
@@ -122,27 +83,13 @@
 
         navigationPanel();
 
-        write( "</body>" + EOL );
+        writeEndTag( Tag.BODY );
 
-        write( "</document>" + EOL );
+        writeEndTag( DOCUMENT_TAG );
 
         flush();
 
         resetState();
-    }
-
-    /**
-     * @see org.apache.maven.doxia.module.xdoc.XdocSink#title_()
-     */
-    public void title_()
-    {
-        if ( getBuffer().length() > 0 )
-        {
-            write( "<title>" );
-            content( getBuffer().toString() );
-            write( "</title>" + EOL );
-            resetBuffer();
-        }
     }
 
     // -----------------------------------------------------------------------



Mime
View raw message