Skip to content

Commit

Permalink
0.3.3.6 (2021-02-03)
Browse files Browse the repository at this point in the history
--------------------
+ fremarker html support now print style attribute only if has values
  • Loading branch information
fugerit79 committed Feb 3, 2021
1 parent 50d6df1 commit fb71e3c
Show file tree
Hide file tree
Showing 13 changed files with 27 additions and 19 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.3.5",
"date" : "02/02/2021",
"version" : "0.3.3.6",
"date" : "03/02/2021",
"organization" : {
"name" : "Fugerit Org",
"url" : "https://www.fugerit.org"
Expand Down
6 changes: 5 additions & 1 deletion docgen/release-notes.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
0.3.3.5 (2021-02-02)
0.3.3.6 (2021-02-03)
--------------------
+ fremarker html support now print style attribute only if has values

0.3.3.5 (2021-02-02)
--------------------
+ Added support for italic and bold italic style in freemarker html

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.3.5</version>
<version>0.3.3.6</version>
</parent>

<name>fj-doc-base</name>
Expand Down
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.3.5</version>
<version>0.3.3.6</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.3.5</version>
<version>0.3.3.6</version>
</parent>

<name>fj-doc-freemarker</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@
<#assign elementType="${current.class.simpleName}"/>
<#if elementType = 'DocPhrase'>
<#if (current.link)??>
<a style="<@handleStyle styleValue=current.style/>" href="${current.link}">${current.text}</a>
<a <@handleStyleOnly styleValue=current.style/> href="${current.link}">${current.text}</a>
<#elseif (current.anchor)??>
<a style="<@handleStyle styleValue=current.style/>" name="${current.anchor}">${current.text}</a>
<a <@handleStyleOnly styleValue=current.style/> name="${current.anchor}">${current.text}</a>
<#else>
<span style="<@handleStyle styleValue=current.style/>">${current.text}</span>
<span <@handleStyleOnly styleValue=current.style/>>${current.text}</span>
</#if>
<#elseif elementType = 'DocNbsp'>
&nbsp;
<#elseif elementType = 'DocBr'>
<br/>
<#elseif elementType = 'DocPara'>
<#if current.headLevel == 0>
<p style="<@handleAlign alignValue=current.align/> <@handleStyle styleValue=current.style/>">${current.text}</p>
<p <@handleStyleComplete styleValue=current.style alignValue=current.align/>>${current.text}</p>
<#else>
<h${current.headLevel} style="<@handleAlign alignValue=current.align/> <@handleStyle styleValue=current.style/>">${current.text}</h${current.headLevel}>
<h${current.headLevel} <@handleStyleComplete styleValue=current.style alignValue=current.align/>>${current.text}</h${current.headLevel}>
</#if>
<#elseif elementType = 'DocTable'>
<@handleTable docTable=current/>
Expand Down Expand Up @@ -63,5 +63,9 @@

<#macro handleAlign alignValue><#if alignValue = 1>text-align: left;<#elseif alignValue = 2>text-align: center;<#elseif alignValue = 3>text-align: right;</#if></#macro>

<#macro handleStyle styleValue><#if styleValue = 2>font-weight: bold;<#elseif styleValue = 3>font-weight: underline;<#elseif styleValue = 4>font-style: italic;<#elseif styleValue = 5>font-weight: bold; font-style: italic;</#if> </#macro>
<#macro handleStyle styleValue><#if styleValue = 2>font-weight: bold;<#elseif styleValue = 3>font-weight: underline;<#elseif styleValue = 4>font-style: italic;<#elseif styleValue = 5>font-weight: bold; font-style: italic;</#if></#macro>

<#macro handleStyleOnly styleValue><#assign cStyle><@handleStyle styleValue=styleValue/></#assign><#if cStyle != '' >style="${cStyle}"</#if></#macro>

<#macro handleStyleComplete styleValue alignValue><#assign cStyle><@handleStyle styleValue=styleValue/></#assign><#assign cAlign><@handleAlign alignValue=alignValue/></#assign><#if cStyle != '' || cAlign != '' >style="${cStyle} ${cAlign}"</#if></#macro>

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.3.5</version>
<version>0.3.3.6</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.3.5</version>
<version>0.3.3.6</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.3.5</version>
<version>0.3.3.6</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.3.5</version>
<version>0.3.3.6</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.3.5</version>
<version>0.3.3.6</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.3.5</version>
<version>0.3.3.6</version>
</parent>

<name>fj-doc-sample</name>
Expand Down
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.3.5</version>
<version>0.3.3.6</version>
<packaging>pom</packaging>

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

0 comments on commit fb71e3c

Please sign in to comment.