[ 
https://issues.apache.org/jira/browse/FOP-2230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13634321#comment-13634321
 ] 

Vincent Hennebert commented on FOP-2230:
----------------------------------------

After a closer look at this example, I'm tempted to say that the result is 
correct. Unexpected maybe, but correct.

Cells 1.1 and 1.3 span 2 rows, but their content is only one line worth, so it 
all fits on the first row. As to cell 2.3, it's spanning rows 2 and 3, so it's 
ok if all its content is put on row 3. So row 2 is there, but it's basically 
empty. It has zero height.

Requiring row 2 to have non-zero height means that we have to add some 
arbitrary whitespace. How much? That clashes with the page layout philosophy 
which is biased towards fitting as much content as possible on a page (for 
example, between two ways of laying out a paragraph, one on 9 lines, one or 10 
lines, the 9-line version will be preferred). Besides, that layout with 
whitespace can be achieved by adding a block containing a non-breaking space 
after "1.1" (which is probably how you made the expected version).

We could impose to put at least some content on every row, but it would be hard 
to define a way that would lead to satisfying results in every situation. For 
example, imagine that instead of the text "2.3" you have a big image. Do you 
really want to have row 3 starting all the way down after that big image?

So we're facing a corner case here. All I can suggest is to re-work the layout 
of the table to avoid that situation...

What do people think?
                
> RowSpanning will not effect, if there is not a column with all rows
> -------------------------------------------------------------------
>
>                 Key: FOP-2230
>                 URL: https://issues.apache.org/jira/browse/FOP-2230
>             Project: Fop
>          Issue Type: Bug
>          Components: pdf
>    Affects Versions: 1.1
>            Reporter: Markus Sticker
>         Attachments: table_error_expected.pdf, table_error.fo, 
> table_error.pdf, table_error.rtf
>
>
> RowSpanning will not effect, if there is not a column with all rows

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to