Hi,
Chris Bowditch wrote:
> Jan Driesen wrote:
>> Dear all,
>
> Hi Jan,
>
>>
>>
>> While outputting PDF using FOP 0.95, I'm encountering an issue in PDF
>> markup.
>>
>> The (XSLT-generated) FO code is:
>>
>> <fo:table-row>
>> <fo:table-cell padding-right="1mm" padding-top="9pt"
>> text-align="justify" line-height="11pt" font-size="9pt"
>> font-family="Times New Roman" number-columns-spanned="2"> <fo:block>
>> <fo:inline font-style="italic">XaV Latin 9598 fol. 88 ; Reg Antwerp
>> 146 fol. 252, 194 fol. 190v ; G 109 n° 16, G 660, 951</fo:inline>
>> </fo:block> </fo:table-cell> </fo:table-row>
>>
>>
>> In the PDF output, this line is wrapped between "G 109 n" and "° 16, G
>> 660, 951". Rather than choosing a white-space to wrap the line. Is
>> there any way to avoid this? I need wrapping here to fit the content,
>> but preferably not between the "n°" sequence...
>
>
> How about:
>
> <fo:table-cell padding-right="1mm" padding-top="9pt"
> text-align="justify" line-height="11pt" font-size="9pt"
> font-family="Times New Roman" number-columns-spanned="2"> <fo:block>
> <fo:inline font-style="italic">XaV Latin 9598 fol. 88 ; Reg Antwerp 146
> fol. 252, 194 fol. 190v ; <fo:inline keep-together.within-line="true">G
> 109 n° 16</fo:inline>, G 660, 951</fo:inline> </fo:block>
> </fo:table-cell> </fo:table-row>
(Small correction: that’s keep-together.within-line="always".)
Alternatively you can use non-breaking spaces (U+00A0):
<fo:inline font-style="italic">XaV Latin 9598 fol. 88 ; Reg Antwerp
146 fol. 252, 194 fol. 190v ; G 109 n° 16,
G 660, 951</fo:inline>
Just choose the method that is easiest to achieve for you. This may
depend on your processing chain.
HTH,
Vincent
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]