Re: [xep-support] Overlap of list item lable and content

From: Bob Stayton <bobs@sagehill.net>
Date: Tue Mar 10 2009 - 11:09:17 PST

Yes, this may be expected. 8^)
There are rules for how start-indent (set by the fo:list elements),
margin-left, padding, and border-width interact, but I've never fully
understood them. In your case, the text starts at the start-indent
established by the list-block's provisional-distance-between-starts, and the
padding and rule width appear to the left of that. The solution is to add
margin-left="0pt" and margin-right="0pt" to whatever customization is adding
the padding and rule.

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net

----- Original Message -----
From: "John Maddock" <john@johnmaddock.co.uk>
To: "xep-support" <xep-support@renderx.com>
Sent: Tuesday, March 10, 2009 10:52 AM
Subject: [xep-support] Overlap of list item lable and content

>I have an ordered (numbered) list generated from Docbook XML, normally
>these look just fine, but if a block within the list has a border around
>it, then the border overlaps with the number of the list item. Is this
>expected behavior? And if so any ideas on how the FO needs to be tweaked
>to avoid the issue - hopefully I can work backwards from there to the
>Docbook/XSL required!
>
> The FO currently looks like this:
>
> <fo:list-item id="id841370" space-before.optimum="1em"
> space-before.minimum="0.8em" space-before.maximum="1.2em">
> <fo:list-item-label end-indent="label-end()">
> <fo:block>1.</fo:block>
> </fo:list-item-label>
> <fo:list-item-body start-indent="body-start()">
> <fo:block>
> <fo:block>
> <fo:block id="id841372" border-color="#DCDCDC"
> border-width="1px" border-style="solid" padding-left="0.2cm"
> padding-right="0.2cm" padding-top="0.2cm" padding-bottom="0.2cm"
> widows="6" orphans="40" font-size="9pt" hyphenate="true"
> wrap-option="wrap" hyphenation-character="&#x21B5;" text-align="start"
> space-before.minimum="0.8em" space-before.optimum="1em"
> space-before.maximum="1.2em" space-after.minimum="0.8em"
> space-after.optimum="1em" space-after.maximum="1.2em"
> white-space-collapse="false" white-space-treatment="preserve"
> linefeed-treatment="preserve" font-family="monospace,Symbol">
> <fo:inline
> font-weight="bold">void</fo:inline> <fo:inline
> id="id589937-bb"/>write(std::ostream &amp; rhs) ;
> </fo:block>
> </fo:block>
> </fo:block>
> </fo:list-item-body>
> </fo:list-item>
>
> Many thanks, John Maddock.
>
> -------------------
> (*) 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
>
>

-------------------
(*) 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 Tue Mar 10 11:42:21 2009

This archive was generated by hypermail 2.1.8 : Tue Mar 10 2009 - 11:42:22 PST