Re: [xep-support] Extra spacing after wrapped text

From: Harm Kok (h.kok@diderottrack.nl)
Date: Tue Feb 25 2003 - 01:47:15 PST

  • Next message: Jim Quest: "RE: [xep-support] keep-with-next support"

    Beste Els,

    I found the solution to your problem. In your fo file there is a
    line-break after each </fo:wrapper>. If you remove those, the extra
    spaces will disapear. If you generate your fo using XSL, you can prevent
    this by adding indent="no" to your xsl:output element.

    Regards,

    Harm Kok

    Diderot Track


    <?xml version="1.0" encoding="utf-8"?>
    <!--
        (c) RenderX, 2000
        This file makes part of the RenderX XSL FO Test Suite. Permission is
        granted to copy and modify this file as a whole or in part, provided
        that any work derived from it bear a reference to the original
        document.
      --><fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"><fo:layout-master-set><fo:simple-page-master master-name="all-pages"><fo:region-body region-name="xsl-region-body" margin="0.7in" column-gap="0.25in" border="0.25pt solid gray" padding="6pt"/><fo:region-before region-name="xsl-region-before" extent="0.7in" display-align="after" padding="6pt 0.7in"/><fo:region-after region-name="xsl-region-after" extent="0.7in" display-align="before" padding="6pt 0.7in"/></fo:simple-page-master><fo:page-sequence-master master-name="default-sequence"><fo:repeatable-page-master-reference master-reference="all-pages"/></fo:page-sequence-master></fo:layout-master-set><fo:page-sequence master-reference="default-sequence">
    <fo:flow flow-name="xsl-region-body">

    <fo:block margin-left="0pt" margin-right="0pt" font="bold 14pt Helvetica" space-before="18pt" space-before.conditionality="discard" space-after="6pt" keep-with-next.within-column="always" keep-together.within-column="always" text-align="center" padding="3pt" background-color="silver">Too much spacing after wrapped elements:</fo:block>
    <fo:block font="12pt Times" space-before="6pt" space-after="6pt"> This test contains examples of text wrapped in different styles: italics, bold, and underline</fo:block>

      <fo:block text-align="start" font-family="Helvetica">
        <fo:block space-before.optimum="24pt" keep-with-next.within-column="always"><fo:wrapper text-decoration="underline"><fo:wrapper font-weight="bold">Some normal text, without any wrappers:</fo:wrapper></fo:wrapper></fo:block>
        
    <fo:block font-family="Times New Roman" font-size="10pt" font-style="normal" space-before="0pt" space-after="0pt" text-align="left">ius sanguinis<fo:inline>, </fo:inline>242</fo:block>
    <fo:block font-family="Times New Roman" font-size="10pt" font-style="normal" space-before="0pt" space-after="0pt" text-align="left">ius soli<fo:inline>, </fo:inline>241</fo:block>
    </fo:block>

     <fo:block text-align="start" font-family="Helvetica">
        <fo:block space-before.optimum="24pt" keep-with-next.within-column="always"><fo:wrapper text-decoration="underline"><fo:wrapper font-weight="bold">Text with Italics wrappers:</fo:wrapper></fo:wrapper></fo:block>
          
      <fo:block font-weight="normal" space-before="6pt">
    <fo:block font-family="Times New Roman" font-size="10pt" font-style="normal" space-before="0pt" space-after="0pt" text-align="left">
    <fo:wrapper font-style="italic" >ius sanguinis</fo:wrapper><fo:inline>, </fo:inline>242</fo:block>
    <fo:block font-family="Times New Roman" font-size="10pt" font-style="normal" space-before="0pt" space-after="0pt" text-align="left">
    <fo:wrapper font-style="italic">ius soli</fo:wrapper><fo:inline>, </fo:inline>241</fo:block>
     </fo:block>
    </fo:block>

     <fo:block text-align="start" font-family="Helvetica">
        <fo:block space-before.optimum="24pt" keep-with-next.within-column="always"><fo:wrapper text-decoration="underline"><fo:wrapper font-weight="bold">Text with Bold wrappers:</fo:wrapper></fo:wrapper></fo:block>

      <fo:block font-weight="normal" space-before="6pt">
    <fo:block font-family="Times New Roman" font-size="10pt" font-style="normal" space-before="0pt" space-after="0pt" text-align="left">
    <fo:wrapper font-weight="bold" >ius sanguinis</fo:wrapper><fo:inline>, </fo:inline>242</fo:block>
    <fo:block font-family="Times New Roman" font-size="10pt" font-style="normal" space-before="0pt" space-after="0pt" text-align="left">
    <fo:wrapper font-weight="bold">ius soli</fo:wrapper><fo:inline>, </fo:inline>241</fo:block>
     </fo:block>
      </fo:block>

          
      <fo:block text-align="start" font-family="Helvetica">
        <fo:block space-before.optimum="24pt" keep-with-next.within-column="always"><fo:wrapper text-decoration="underline"><fo:wrapper font-weight="bold">Text with Underline wrappers:</fo:wrapper></fo:wrapper></fo:block>
      <fo:block font-weight="normal" space-before="6pt">
    <fo:block font-family="Times New Roman" font-size="10pt" font-style="normal" space-before="0pt" space-after="0pt" text-align="left">
    <fo:wrapper text-decoration="underline">ius sanguinis</fo:wrapper><fo:inline>, </fo:inline>242</fo:block>
    <fo:block font-family="Times New Roman" font-size="10pt" font-style="normal" space-before="0pt" space-after="0pt" text-align="left">
    <fo:wrapper text-decoration="underline">ius soli</fo:wrapper><fo:inline>, </fo:inline>241</fo:block>
     </fo:block>
    </fo:block>

    <fo:block font-family="Times New Roman" font-size="10pt" font-style="normal" space-before="20pt" space-after="0pt" text-align="left">
    Remarks: In all three cases where the text is wrapped, the comma is placed too far to the right after the last letter of the text.
    </fo:block>

    </fo:flow></fo:page-sequence></fo:root>

    -------------------
    (*) 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/tos.html



    This archive was generated by hypermail 2.1.5 : Tue Feb 25 2003 - 01:39:17 PST