maven-doxia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r392173 - /maven/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/module/xhtml/XhtmlSink.java
Date Fri, 07 Apr 2006 03:26:41 GMT
Author: brett
Date: Thu Apr  6 20:26:39 2006
New Revision: 392173

URL: http://svn.apache.org/viewcvs?rev=392173&view=rev
Log:
[DOXIA-48] correctly number ordered lists
Submitted by: Julian Wood

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

Modified: maven/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/module/xhtml/XhtmlSink.java
URL: http://svn.apache.org/viewcvs/maven/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/module/xhtml/XhtmlSink.java?rev=392173&r1=392172&r2=392173&view=diff
==============================================================================
--- maven/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/module/xhtml/XhtmlSink.java
(original)
+++ maven/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/module/xhtml/XhtmlSink.java
Thu Apr  6 20:26:39 2006
@@ -19,6 +19,7 @@
 import org.apache.maven.doxia.module.HtmlTools;
 import org.apache.maven.doxia.module.xhtml.decoration.render.RenderingContext;
 import org.apache.maven.doxia.parser.Parser;
+import org.apache.maven.doxia.sink.Sink;
 import org.apache.maven.doxia.sink.StructureSink;
 import org.apache.maven.doxia.util.StringUtil;
 import org.codehaus.plexus.util.StringUtils;
@@ -291,7 +292,26 @@
 
     public void numberedList( int numbering )
     {
-        write( "<ol>" );
+        write("<ol type=\"");
+        switch ( numbering )
+        {
+            case Sink.NUMBERING_LOWER_ALPHA:
+                write("a");
+                break;
+            case Sink.NUMBERING_UPPER_ALPHA:
+                write("A");
+                break;
+            case Sink.NUMBERING_LOWER_ROMAN:
+                write("i");
+                break;
+            case Sink.NUMBERING_UPPER_ROMAN:
+                write("I");
+                break;
+            case Sink.NUMBERING_DECIMAL:
+            default:
+                write("1");
+        }
+        write("\">");
     }
 
     public void numberedList_()



Mime
View raw message