File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
main/resources/fj_doc_freemarker_config/template/macro
test/resources/coverage/xml Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
13
13
14
14
### Fixed
15
15
16
- - [ fj-doc-mod-fop] handle space-before and space-after in table #206
16
+ - [ fj-doc-freemarker] handle space-before and space-after in table #206 [ html]
17
+ - [ fj-doc-mod-fop] handle space-before and space-after in table #206 [ pdf]
17
18
18
19
## [ 8.8.7] - 2024-09-16
19
20
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 >
You can’t perform that action at this time.
0 commit comments