Re: [xep-support] Centered table not centered and unwanted line break

From: Benoit Maisonny <benoit@synclude.com>
Date: Mon Jun 13 2005 - 02:59:44 PDT

Hi all,

I need to partially retract what I wrote earlier. From the example I
sent initially, if I remove the blue columns from the inner table, no
wrapping occurs anymore. I still don't see why wrapping occurs when the
blue columns are there, but anyway this is a progress.

Clearly, there is something strange in the way the inner table's width
is calculated by XEP. We've had a case where simply adding a thick
border on the centered cell made it wrap.

We're now trying to isolate a bit of FO code which provokes the wrapping
in our situation.

Werner, you're centering a normal block, here, not a table. Anyway, from
your FO code, if I replace:

<fo:table-cell>
    <fo:block>
        <fo:block-container width="100%">
            <fo:block margin-left="0pt" margin-right="0pt"
                text-align="justify" unicode-bidi="embed">T e s
            t</fo:block>
        </fo:block-container>
    </fo:block>
</fo:table-cell>

by:

<fo:table-cell>
            <fo:block margin-left="0pt" margin-right="0pt"
                text-align="justify" unicode-bidi="embed">T e s
            t</fo:block>
</fo:table-cell>

I get the same result, it seems.

Cheers,
Benoit

Werner Donné wrote:

> Hi Benoit,
>
> I have attached a sample of the code the upcoming CSSToXSLFO generates
> when one want to center a block. The difference is that the original
> block becomes an fo:block-container with the width set to 100%.
>
> Best regards,
>
> Werne.
>
> Benoit Maisonny wrote:
>
>> Hi,
>>
>> Referring to the thread with the same subject from April 2005, and
>> specifically to this message:
>> http://www.renderx.net/lists/xep-support/3375.html
>>
>> I modified the FO source sent by Alexender Peshkov simply to replace
>> the word "SHORT" by "S T" (with a regular space). That string wraps
>> between S and T.
>>
>> This shows that the trick of using either table-width=100% or
>> table-layout=fixed does not work for tables with little content.
>>
>> In our case, we can solve it by setting no-wrap on the content, but
>> it's strange that wrapping occurs where there is obviously enough
>> place for the text to fit on 1 line.
>>
>> Cheers,
>> Benoit
>>
>>
>

-- 
Benoit Maisonny                benoit@synclude.com
Director & Consultant          http://synclude.com
Synclude
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html
Received on Mon Jun 13 03:34:19 2005

This archive was generated by hypermail 2.1.8 : Mon Jun 13 2005 - 03:34:22 PDT