Skip to content

Commit

Permalink
0.3.8.7 / 0.3.8.8 (2022-03-06)
Browse files Browse the repository at this point in the history
+ Added support for different symbols on FOP/HTML rendered list (dash,
minus, letters, numbers)
  • Loading branch information
daneeldeveloper committed Mar 6, 2022
1 parent 13125f9 commit f03cd0f
Show file tree
Hide file tree
Showing 15 changed files with 44 additions and 18 deletions.
4 changes: 2 additions & 2 deletions docgen/parameters.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"title" : "Venus (Fugerit Document Generation Framework)",
"name": "Venus",
"version" : "0.3.8.7",
"date" : "05/03/2022",
"version" : "0.3.8.8",
"date" : "06/03/2022",
"organization" : {
"name" : "Fugerit Org",
"url" : "https://www.fugerit.org"
Expand Down
4 changes: 2 additions & 2 deletions docgen/release-notes.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
0.3.8.7 (2022-03-05)
0.3.8.7 / 0.3.8.8 (2022-03-06)
--------------------
+ Added support for different symbols on FOP rendered list (dash, minus, letters, numbers)
+ Added support for different symbols on FOP/HTML rendered list (dash, minus, letters, numbers)

0.3.8.5 / 0.3.8.6 (2022-02-16)
--------------------
Expand Down
2 changes: 1 addition & 1 deletion fj-doc-base/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.fugerit.java</groupId>
<artifactId>fj-doc</artifactId>
<version>0.3.8.7</version>
<version>0.3.8.8</version>
</parent>

<name>fj-doc-base</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,18 @@ public String getClt() {
}
return clt;
}

/*
* Return html list type
*/
public String getHtmlType() {
String clt = this.getListType();
if ( clt.equalsIgnoreCase( LIST_TYPE_ULM ) || clt.equalsIgnoreCase( LIST_TYPE_ULD ) ) {
clt = LIST_TYPE_UL;
} else if ( clt == null || clt.equalsIgnoreCase( LIST_TYPE_OLN ) || clt.equalsIgnoreCase( LIST_TYPE_OLL ) ) {
clt = LIST_TYPE_OL;
}
return clt;
}

}
2 changes: 1 addition & 1 deletion fj-doc-ent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.fugerit.java</groupId>
<artifactId>fj-doc</artifactId>
<version>0.3.8.7</version>
<version>0.3.8.8</version>
</parent>

<name>fj-doc-ent</name>
Expand Down
2 changes: 1 addition & 1 deletion fj-doc-freemarker/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.fugerit.java</groupId>
<artifactId>fj-doc</artifactId>
<version>0.3.8.7</version>
<version>0.3.8.8</version>
</parent>

<name>fj-doc-freemarker</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,13 @@
</#macro>

<#macro handleList docList>
<${docList.listType}>
<#if docList.elementList?size gt 0>
<${docList.htmlType}>
<#list docList.elementList as li>
<li><#list li.elementList as element><@handleElement current=element/></#list></li>
<li <#if li.contentList>style="list-style-type: none;"<#elseif docList.listType = 'oll'>style="list-style-type: lower-alpha;"<#elseif docList.listType = 'ulm'>style="list-style-type: square;"<#elseif docList.listType = 'uld'>style="list-style-type: circle;"</#if>> <#list li.elementList as element><@handleElement current=element/></#list></li>
</#list>
</${docList.listType}>
</${docList.htmlType}>
</#if>
</#macro>

<#macro handleRowList docTable rowList cellType>
Expand Down
2 changes: 1 addition & 1 deletion fj-doc-mod-fop/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.fugerit.java</groupId>
<artifactId>fj-doc</artifactId>
<version>0.3.8.7</version>
<version>0.3.8.8</version>
</parent>

<name>fj-doc-mod-fop</name>
Expand Down
2 changes: 1 addition & 1 deletion fj-doc-mod-itext/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.fugerit.java</groupId>
<artifactId>fj-doc</artifactId>
<version>0.3.8.7</version>
<version>0.3.8.8</version>
</parent>

<name>fj-doc-mod-itext</name>
Expand Down
2 changes: 1 addition & 1 deletion fj-doc-mod-jxl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.fugerit.java</groupId>
<artifactId>fj-doc</artifactId>
<version>0.3.8.7</version>
<version>0.3.8.8</version>
</parent>

<name>fj-doc-mod-jxl</name>
Expand Down
2 changes: 1 addition & 1 deletion fj-doc-mod-pdfbox/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.fugerit.java</groupId>
<artifactId>fj-doc</artifactId>
<version>0.3.8.7</version>
<version>0.3.8.8</version>
</parent>

<name>fj-doc-mod-pdfbox</name>
Expand Down
2 changes: 1 addition & 1 deletion fj-doc-mod-poi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.fugerit.java</groupId>
<artifactId>fj-doc</artifactId>
<version>0.3.8.7</version>
<version>0.3.8.8</version>
</parent>

<name>fj-doc-mod-poi</name>
Expand Down
2 changes: 1 addition & 1 deletion fj-doc-sample/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.fugerit.java</groupId>
<artifactId>fj-doc</artifactId>
<version>0.3.8.7</version>
<version>0.3.8.8</version>
</parent>

<name>fj-doc-sample</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import java.util.Locale;

import org.fugerit.java.doc.base.config.DocTypeHandler;
import org.fugerit.java.doc.freemarker.html.FreeMarkerHtmlTypeHandler;
import org.fugerit.java.doc.mod.fop.PdfFopTypeHandler;
import org.junit.Assert;
import org.junit.Test;
Expand All @@ -23,7 +24,7 @@ public void test01() throws Exception {
}

@Test
public void test01Alt() throws Exception {
public void test01FoPdf() throws Exception {
Locale.setDefault( Locale.UK );
String testCase = "test-xml-01";
DocTypeHandler handler = PdfFopTypeHandler.HANDLER;
Expand All @@ -33,4 +34,14 @@ public void test01Alt() throws Exception {
Assert.assertTrue( res );
}

@Test
public void test01Html() throws Exception {
Locale.setDefault( Locale.UK );
String testCase = "test-xml-01";
DocTypeHandler handler = FreeMarkerHtmlTypeHandler.HANDLER;
boolean res = this.workerXmlToHandler( new File( "src/test/resources/dev/"+testCase+".xml" ),
new File( BasicFacadeTest.BASIC_OUTPUT_PATH, testCase+"."+handler.getType() ), handler );
Assert.assertTrue( res );
}

}
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<groupId>org.fugerit.java</groupId>
<artifactId>fj-doc</artifactId>

<version>0.3.8.7</version>
<version>0.3.8.8</version>
<packaging>pom</packaging>

<name>fj-doc</name>
Expand Down

0 comments on commit f03cd0f

Please sign in to comment.