Hi all. We’ve got a problem using fop to format a paragraph. The thing is that when we try to put a text inside a paragraph, we get the undesired result as seen in the image attached. What can i do to set the space between lines as best as possible?

 

   Here’s the code used to show the comment:

 

   <!-- COMENTARIOS -->

   <xsl:template match="frame/comentari">

     <fo:block font-size="12pt" text-align="center" font-weight="bold" padding-bottom="10px" font-family="ComicSansMS">

        <xsl:value-of select="titulo"/>

     </fo:block>

     <fo:block text-align="justify" text-indent="15pt" space-after="20pt">

          <xsl:apply-templates select="texto"/>

     </fo:block>

   </xsl:template>

 

   It happens that inside the same paragraph there can be different font sizes, so i just don’t know what to do to fix it.

 

   Here’s the generated FO:

 

        <fo:table text-align="start" table-layout="fixed">

          <fo:table-column column-width="18cm"/>

          <fo:table-body>

             <fo:table-row keep-together="always">

               <fo:table-cell>

                  <fo:block padding-bottom="10px" font-weight="bold" text-align="center" font-size="12pt">Susp. neg. ENACO</fo:block>

                  <fo:block space-after="20pt" text-indent="15pt" text-align="justify">

                    <fo:inline font-size="8pt">

                       <fo:block>&#13;       <fo:inline color="#000000" font-size="12pt">La </fo:inline>

                         <fo:inline font-weight="bold">

                            <fo:inline color="#000000" font-size="12pt">&#13; Dirección General de Mercados e Inversores</fo:inline>

                         </fo:inline>

                         <fo:inline color="#000000" font-size="12pt">&#13;  eleva la siguiente propuesta motivada de suspensión de la negociación al &#13;       Presidente de la Comisión Nacional del Mercado de Valores, quien en &#13;       virtud de la delegación de facultades otorgada por el Consejo de la &#13;       Comisión Nacional con fecha 9 de octubre de 2002, acuerda:&#13; </fo:inline>

                       </fo:block>

                       <fo:block>        </fo:block>&#13;     <fo:block>&#13;       <fo:inline color="#000000" font-size="12pt">&#13; </fo:inline>

                       </fo:block>

                       <fo:block>        </fo:block>&#13;     <fo:block>&#13;       <fo:inline color="#000000" font-size="12pt">"<fo:inline font-style="italic">Suspender cautelarmente, con &#13;       efectos inmediatos, al amparo del Artículo 33 de la Ley 24/1988, de 28 &#13;       de julio, del Mercado de Valores, la negociación en el Sistema de &#13;       Interconexión Bursátil de las acciones, u otros valores que den derecho &#13;       a su suscripción o adquisición, de la entidad ENACO, S.A., por concurrir &#13;       circunstancias que pudieran perturbar el normal desarrollo de las &#13;       operaciones sobre los citados valores.</fo:inline>"</fo:inline>&#13;     </fo:block>

                       <fo:block>        </fo:block>

                    </fo:inline>

                  </fo:block>

               </fo:table-cell>

             </fo:table-row>

          </fo:table-body>

                  </fo:table>

 

 

   Any help would be appreciated.

 

   Thanks.

 

   Ramon Maria Gallart.

 

Reply via email to