Reputation: 11
I have two <fo:block >
like this. I got big line space between these two blocks.
How can I remove that line?
Here is the code :
<fo:block line-height="12pt" font-size="10pt"
space-before.optimum="1.5pt" space-after.optimum="1.5pt"
keep-together="always">`enter code here`
<fo:leader leader-length="100%" end-indent="0cm"
start-indent="0cm" space-after.optimum="0pt" space-before.optimum="0pt"
rule-thickness="2.0pt" leader-pattern="rule" />
</fo:block>
<if test="message.msg1">
<fo:block line-height="12pt" font-family="Times Roman"
font-size="10pt" space-before.optimum="1.5pt" space-after.optimum="1.5pt"
linefeed-treatment="preserve" white-space-treatment="preserve" white-space-collapse="false"
text-align="left"
wrap-option="wrap">
<message id="msg1" />
</fo:block>
</if>
<if test="message.msg2">
<fo:block line-height="12pt" font-family="Times Roman"
font-size="10pt" space-before.optimum="1.5pt" space-after.optimum="1.5pt"
linefeed-treatment="preserve" white-space-treatment="preserve" white-space-collapse="false"
text-align="left"
wrap-option="wrap">
<message id="msg2" />
</fo:block>
</if>
Upvotes: 1
Views: 2930
Reputation: 8068
Are you sure that you don't have empty lines at the end of your blocks? It looks like you should only have 1.5pt between blocks. If you set background-color
on the fo:block
, is the big space because of the blocks?
Upvotes: 1