File tree Expand file tree Collapse file tree 6 files changed +15
-6
lines changed
main/resources/fj_doc_freemarker_config/template/macro
test/resources/coverage/xml
fj-doc-maven-plugin/src/main/resources/config/flavour
main/resources/fj_doc_mod_fop_config/template/macro Expand file tree Collapse file tree 6 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
10
10
### Changed
11
11
12
12
- [ fj-doc-playground-quarkus] quarkus version set to 3.15.0
13
+ - [ fj-doc-maven-plugin] goal init, flavour springboot-3, default springboot version 3.3.4
14
+ - [ fj-doc-maven-plugin] goal init, flavour quarkus-3, default quarkus version 3.15.0
15
+
16
+ ### Fixed
17
+
18
+ - [ fj-doc-freemarker] handle space-before and space-after in table #206 [ html]
19
+ - [ fj-doc-mod-fop] handle space-before and space-after in table #206 [ pdf]
13
20
14
21
## [ 8.8.7] - 2024-09-16
15
22
Original file line number Diff line number Diff line change 111
111
<@handleRowInline docTable=docTable row=row docTableUtil=docTableUtil/ >
112
112
</#list >
113
113
<#else >
114
- <table style =' width : ${docTable.width}%' <#if (docTable.alt)?? > aria-describedby="${docTable.alt} "</#if >>
114
+ <table style =' <@ handleTableSpacing dc = docTable /> width : ${docTable.width}%' <#if (docTable.alt)?? > aria-describedby="${docTable.alt} "</#if >>
115
115
<#if (docTableUtil.strictHeader) >
116
116
<thead >
117
117
<@handleRowList docTable=docTable rowList=docTableUtil.headerRows cellType='th'/ >
@@ -156,6 +156,7 @@ white-space-collapse -> false : white-space-collapse: preserve; white-space: pre
156
156
-->
157
157
<#macro handlePadding amt dir ><#if (amt > 0)> padding-${dir} : ${amt} px;</#if ></#macro >
158
158
<#macro handleSpacing dc ><@handlePadding amt=dc.spaceBefore!0 dir='top'/ ><@handlePadding amt=((dc.leading!0)*10 + dc.spaceAfter!0) dir='bottom'/ ><@handlePadding amt=((dc.textIndent!0)*10 + dc.spaceLeft!0) dir='left'/ ><@handlePadding amt=dc.spaceRight!0 dir='right'/ ><#if dc.notWhiteSpaceCollapse > white-space-collapse: preserve; white-space: pre-wrap;</#if ></#macro >
159
+ <#macro handleTableSpacing dc ><@handlePadding amt=dc.spaceBefore!0 dir='top'/ ><@handlePadding amt=((dc.leading!0)*10 + dc.spaceAfter!0) dir='bottom'/ ></#macro >
159
160
160
161
<#macro handleAlign alignValue ><#if alignValue = 1 > text-align: left;<#elseif alignValue = 2 > text-align: center;<#elseif alignValue = 3 > text-align: right;<#elseif alignValue = 8 || alignValue = 9 > text-align: justify;</#if ></#macro >
161
162
Original file line number Diff line number Diff line change 39
39
<para size =" 3" fore-color =" #dddddd" >Test default font</para >
40
40
<br />
41
41
<page-break />
42
- <table columns =" 3" colwidths =" 30;30;40" width =" 100" id =" excel-table" padding =" 2" >
42
+ <table space-before = " 20 " columns =" 3" colwidths =" 30;30;40" width =" 100" id =" excel-table" padding =" 2" >
43
43
<row >
44
44
<cell align =" center" border-color =" #000000" border-width =" 1" ><para style =" bold" >Name</para ></cell >
45
45
<cell align =" center" ><para style =" bold" >Surname</para ></cell >
Original file line number Diff line number Diff line change 1
1
# default flavour versions
2
- quarkus-3 =3.14.3
2
+ quarkus-3 =3.15.0
3
3
quarkus-2 =2.16.12.Final
4
4
micronaut-4 =4.6.2
5
- springboot-3 =3.3.3
5
+ springboot-3 =3.3.4
6
6
openliberty =20.0.0.9
Original file line number Diff line number Diff line change 124
124
<@handleRowInline docTable=docTable row=row docTableUtil=docTableUtil/ >
125
125
</#list >
126
126
<#else >
127
- <fo:table border-collapse =" ${docBase.stableInfo['table-border-collapse']!'separate'}" width =" ${docTable.width}%" table-layout =" fixed" <#if (docTable.spacing)?? >border-separation="${docTable.spacing} px"</#if >>
127
+ <fo:table < @handleSpacing dc = docTable/ > border-collapse="${docBase.stableInfo['table-border-collapse']!'separate' } " width="${docTable.width} %" table-layout="fixed" <#if (docTable.spacing)?? >border-separation="${docTable.spacing} px"</#if >>
128
128
<#list docTable.colWithds as currentColWidth >
129
129
<fo:table-column column-width =" ${currentColWidth}%" />
130
130
</#list >
Original file line number Diff line number Diff line change 9
9
</footer-ext >
10
10
</metadata >
11
11
<body >
12
- <table columns =" 3" colwidths =" 30;30;40" id =" excel-table" padding =" 2" width =" 100" >
12
+ <h head-level =" 1" >Alternative sample doc</h >
13
+ <table space-before =" 30" columns =" 3" colwidths =" 30;30;40" id =" excel-table" padding =" 2" width =" 100" >
13
14
<row >
14
15
<cell align =" center" back-color =" #99aaee" >
15
16
<para >Name</para >
You can’t perform that action at this time.
0 commit comments