Skip to content

Commit 13125f9

Browse files
0.3.8.7 (2022-03-05)
+ Added support for different symbols on FOP rendered list (dash, minus, letters, numbers)
1 parent 2c7cc02 commit 13125f9

File tree

18 files changed

+91
-18
lines changed

18 files changed

+91
-18
lines changed

docgen/parameters.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"title" : "Venus (Fugerit Document Generation Framework)",
33
"name": "Venus",
4-
"version" : "0.3.8.6",
5-
"date" : "16/02/2022",
4+
"version" : "0.3.8.7",
5+
"date" : "05/03/2022",
66
"organization" : {
77
"name" : "Fugerit Org",
88
"url" : "https://www.fugerit.org"

docgen/release-notes.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
0.3.8.5 / 0.3.8.6 (2022-02-16)
1+
0.3.8.7 (2022-03-05)
2+
--------------------
3+
+ Added support for different symbols on FOP rendered list (dash, minus, letters, numbers)
4+
5+
0.3.8.5 / 0.3.8.6 (2022-02-16)
26
--------------------
37
+ Fix the current doc meta model supported version to 1.8
48

fj-doc-base/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.fugerit.java</groupId>
99
<artifactId>fj-doc</artifactId>
10-
<version>0.3.8.6</version>
10+
<version>0.3.8.7</version>
1111
</parent>
1212

1313
<name>fj-doc-base</name>

fj-doc-base/src/main/java/org/fugerit/java/doc/base/model/DocLi.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,8 @@ public DocElement getContent() {
1111
return this.getElementList().get( 0 );
1212
}
1313

14+
public boolean isContentList() {
15+
return this.getContent().getClass().equals( DocList.class );
16+
}
17+
1418
}

fj-doc-base/src/main/java/org/fugerit/java/doc/base/model/DocList.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,16 @@ public class DocList extends DocContainer {
44

55
public final static String LIST_TYPE_UL = "ul";
66

7+
public final static String LIST_TYPE_ULD = "uld";
8+
9+
public final static String LIST_TYPE_ULM = "ulm";
10+
711
public final static String LIST_TYPE_OL = "ol";
812

13+
public final static String LIST_TYPE_OLN = "oln";
14+
15+
public final static String LIST_TYPE_OLL = "oll";
16+
917
/**
1018
*
1119
*/
@@ -21,4 +29,17 @@ public void setListType(String listType) {
2129
this.listType = listType;
2230
}
2331

32+
/*
33+
* Return canonical list type
34+
*/
35+
public String getClt() {
36+
String clt = this.getListType();
37+
if (clt.equalsIgnoreCase( LIST_TYPE_UL ) ) {
38+
clt = LIST_TYPE_ULD;
39+
} else if ( clt == null || clt.equalsIgnoreCase( LIST_TYPE_OL) ) {
40+
clt = LIST_TYPE_OLN;
41+
}
42+
return clt;
43+
}
44+
2445
}

fj-doc-base/src/main/resources/config/doc-1-8.xsd

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* @project : org.fugerit.java.doc.base
88
* @creation : 2021-12-22
9-
* @version : 1.0.0 (2021-12-22)
9+
* @version : 1.1.0 (2022-03-05)
1010
*
1111
* XSD for fugerit doc configuration
1212
*/
@@ -297,8 +297,18 @@
297297

298298
<xsd:simpleType name="listType">
299299
<xsd:restriction base="xsd:string">
300+
<!-- default unordered list, same asd 'uld' -->
300301
<xsd:enumeration value="ul"></xsd:enumeration>
302+
<!-- unordered list, using dot -->
303+
<xsd:enumeration value="uld"></xsd:enumeration>
304+
<!-- unordered list, using minus -->
305+
<xsd:enumeration value="ulm"></xsd:enumeration>
306+
<!-- default ordered list, same asd 'oln' -->
301307
<xsd:enumeration value="ol"></xsd:enumeration>
308+
<!-- ordered list, using numbers -->
309+
<xsd:enumeration value="oln"></xsd:enumeration>
310+
<!-- ordered list, using letters -->
311+
<xsd:enumeration value="oll"></xsd:enumeration>
302312
</xsd:restriction>
303313
</xsd:simpleType>
304314

fj-doc-ent/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.fugerit.java</groupId>
99
<artifactId>fj-doc</artifactId>
10-
<version>0.3.8.6</version>
10+
<version>0.3.8.7</version>
1111
</parent>
1212

1313
<name>fj-doc-ent</name>

fj-doc-freemarker/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.fugerit.java</groupId>
99
<artifactId>fj-doc</artifactId>
10-
<version>0.3.8.6</version>
10+
<version>0.3.8.7</version>
1111
</parent>
1212

1313
<name>fj-doc-freemarker</name>

fj-doc-mod-fop/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.fugerit.java</groupId>
99
<artifactId>fj-doc</artifactId>
10-
<version>0.3.8.6</version>
10+
<version>0.3.8.7</version>
1111
</parent>
1212

1313
<name>fj-doc-mod-fop</name>

fj-doc-mod-fop/src/main/resources/fm_fop/template/macro/doc_element.ftl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@
6363
<#list docList.elementList as li>
6464
<fo:list-item>
6565
<fo:list-item-label end-indent="label-end()">
66-
<fo:block><fo:inline font-style="normal" <@handleFont element=li.content/>><#if docList.listType == 'ul'>&#183;<#else>${li?counter}.</#if></fo:inline></fo:block>
66+
<fo:block><fo:inline font-style="normal" <@handleFont element=li.content/>><#if li.contentList><#elseif docList.clt == 'uld'>&#183;<#elseif docList.clt == 'ulm'>-<#elseif docList.clt == 'oll'>${li?counter?lower_abc}.<#else>${li?counter}.</#if></fo:inline></fo:block>
6767
</fo:list-item-label>
6868
<fo:list-item-body start-indent="body-start()">
69-
<fo:block><#list li.elementList as element><@handleElement current=element/></#list></fo:block>
69+
<fo:block><@handleElement current=li.content/></fo:block>
7070
</fo:list-item-body>
7171
</fo:list-item>
7272
</#list>

0 commit comments

Comments
 (0)