Skip to content

Commit 0dd8389

Browse files
committed
Fix [fj-doc-mod-fop] handle space-before and space-after in table #206
1 parent 95546b1 commit 0dd8389

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
- [fj-doc-playground-quarkus] quarkus version set to 3.15.0
1313

14+
### Fixed
15+
16+
- [fj-doc-mod-fop] handle space-before and space-after in table #206
17+
1418
## [8.8.7] - 2024-09-16
1519

1620
### Added

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
<@handleRowInline docTable=docTable row=row docTableUtil=docTableUtil/>
125125
</#list>
126126
<#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>>
128128
<#list docTable.colWithds as currentColWidth>
129129
<fo:table-column column-width="${currentColWidth}%" />
130130
</#list>

fj-doc-mod-fop/src/test/resources/sample/doc_alt_01.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
</footer-ext>
1010
</metadata>
1111
<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">
1314
<row>
1415
<cell align="center" back-color="#99aaee">
1516
<para>Name</para>

0 commit comments

Comments
 (0)