xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Harrop <jhar...@gmail.com>
Subject Re: preserving a trailing space in inline
Date Tue, 20 May 2014 10:45:55 GMT
HI Pascal

Thank you very much for taking the time to explore this issue;  I've
implemented your suggested workaround; it works nicely!

The JIRA entry: https://issues.apache.org/jira/browse/FOP-2374

thanks again .. Jason


On Tue, May 20, 2014 at 6:20 PM, Pascal Sancho <psancho.asf@gmail.com> wrote:
> Hi,
>
> I've done further checks with your snippet.
>
> The behaviour is definitively an issue when a
> fo:page-number-citation-last (PNCL) comes after a fo:inline element
> and no content comes after the PNCL.
> Please, can you file in a bug entry in Jira, attaching short FO
> snippet (the one I've extended from yours is OK) plus PDF output.
>
> Fortunately, I've found a workaround:
> Just add a character AFTER the PNCL element other than a regular white space.
> The ZWSP (Zero Width SPace, AKA &#x200b;) will do the trick (see
> attached snippet).
>
>
> 2014-05-20 6:06 GMT+02:00 Jason Harrop <jharrop@gmail.com>:
>> Ooops, sorry, the space is lost after "of", so I'm getting:
>>
>>      of<last page no>
>>
>> Thanks for pointing that out Manuel!
>>
>> cheers .. Jason
>>
>>
>> On Tue, May 20, 2014 at 1:56 PM, Manuel Mall <mm@arcus.com.au> wrote:
>>> You other option might be to use a non breaking space (&#160;).
>>>
>>> Also your original description is a bit confusing as you said:
>>>
>>> " I'm losing the space between the word "page" and page-number-citation-last."
>>>
>>> According to your fo snippet there is no word "page" it looks more like
>>>
>>>         Page No: <current page no> of <last page no>
>>>
>>> So you should be able to clearly say where the 'space is lost'.
>>>
>>> Manuel
>>>
>>> -----Original Message-----
>>> From: Jason Harrop [mailto:jharrop@gmail.com]
>>> Sent: Tuesday, 20 May 2014 11:04 AM
>>> To: fop-users@xmlgraphics.apache.org
>>> Subject: Re: preserving a trailing space in inline
>>>
>>> Hi Terence,  thanks, it's good to know the simple FO works fine!
>>>
>>> Its non trivial for me to get rid of the inline elements, although I could get
rid of the nested ones if it is these which are causing the problem.
>>>
>>> I'll look into that, but it would still be useful to get confirmation as to which
of the whitespace attributes I should be using.
>>>
>>> thanks .. Jason
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>>> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>>
>
>
>
> --
> pascal
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message