maven-doxia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ltheu...@apache.org
Subject svn commit: r946933 - in /maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src: main/java/org/apache/maven/doxia/module/fo/NumberedListItem.java test/java/org/apache/maven/doxia/module/fo/FoSinkTest.java
Date Fri, 21 May 2010 08:39:07 GMT
Author: ltheussl
Date: Fri May 21 08:39:07 2010
New Revision: 946933

URL: http://svn.apache.org/viewvc?rev=946933&view=rev
Log:
[DOXIA-376] add periods to numbered lists

Modified:
    maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/main/java/org/apache/maven/doxia/module/fo/NumberedListItem.java
    maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/test/java/org/apache/maven/doxia/module/fo/FoSinkTest.java

Modified: maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/main/java/org/apache/maven/doxia/module/fo/NumberedListItem.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/main/java/org/apache/maven/doxia/module/fo/NumberedListItem.java?rev=946933&r1=946932&r2=946933&view=diff
==============================================================================
--- maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/main/java/org/apache/maven/doxia/module/fo/NumberedListItem.java
(original)
+++ maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/main/java/org/apache/maven/doxia/module/fo/NumberedListItem.java
Fri May 21 08:39:07 2010
@@ -160,7 +160,8 @@ public class NumberedListItem
             default:
                 symbol = DECIMALS[j];
         }
-        return symbol;
+
+        return symbol + ".";
     }
 
     /**

Modified: maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/test/java/org/apache/maven/doxia/module/fo/FoSinkTest.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/test/java/org/apache/maven/doxia/module/fo/FoSinkTest.java?rev=946933&r1=946932&r2=946933&view=diff
==============================================================================
--- maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/test/java/org/apache/maven/doxia/module/fo/FoSinkTest.java
(original)
+++ maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/test/java/org/apache/maven/doxia/module/fo/FoSinkTest.java
Fri May 21 08:39:07 2010
@@ -262,7 +262,7 @@ public class FoSinkTest
         String attribs = getConfig().getAttributeString( "list" );
         String itemAttribs = getConfig().getAttributeString( "list.item" );
         return EOL + EOL + "<fo:list-block" + attribs + ">" + EOL + "<fo:list-item"
+ itemAttribs + ">" + EOL
-            + "<fo:list-item-label>" + EOL + "<fo:block>i</fo:block>" +
EOL + "</fo:list-item-label>" + EOL + EOL
+            + "<fo:list-item-label>" + EOL + "<fo:block>i.</fo:block>"
+ EOL + "</fo:list-item-label>" + EOL + EOL
             + "<fo:list-item-body" + itemAttribs + ">" + EOL + "<fo:block>" +
item + "</fo:block>" + EOL
             + "</fo:list-item-body>" + EOL + "</fo:list-item>" + EOL + "</fo:list-block>"
+ EOL;
     }



Mime
View raw message