You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by DavidJKelly <dk...@scriptorium.com> on 2007/08/06 16:34:21 UTC
Repetition of "pre" formatted strings when wrap-otion="wrap"
Has anyone seen this problem? From the DITA-OT xsl:fo stylesheets, the
attribute set for "pre" results in a certain set of attributes (shown in
example below). The contained text is repeated in the output with a #
character where the linebreaks were, then ends with broken text. For
example this fo source...
<fo:block space-before="1.2em" space-after="0.8em"
white-space-treatment="preserve" white-space-collapse="false"
linefeed-treatment="preserve" wrap-option="wrap" background-color="#f0f0f0"
font-family="Courier" line-height="106%" font-size="9pt">codeblock w/hard
return:
and another one:
blah</fo:block>
...results in this output in the PDF:
codeblock w/hard return:#and
another one:#blah
codeblock w/hard re
turn:#and another
oth
However, when I set wrap-option="no-wrap", the text renders correctly.
I would like to be able to wrap "pre" formatted text if it encounters a text
margin if possible. Would this be characterized as a bug, or is there some
other combination of settings that would be required?
Thank you as always for the help,
David
--
View this message in context: http://www.nabble.com/Repetition-of-%22pre%22-formatted-strings-when-wrap-otion%3D%22wrap%22-tf4224485.html#a12017331
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Repetition of "pre" formatted strings when wrap-otion="wrap"
Posted by DavidJKelly <dk...@scriptorium.com>.
The bug you mention was indeed the problem. So I'm setting
linefeed-treatment="treat-as-whitespace" and hyphenate="true" in conditions
of narrow columns, and linefeed-treatment="preserve" and hyphenate="false"
in conditions of wide text areas. Much thanks,
David
Andreas L Delmelle wrote:
>
> On Aug 7, 2007, at 14:22, DavidJKelly wrote:
>
>>
>> Thank you for checking this, Vincent. I am attaching a small,
>> complete
>> sample FO http://www.nabble.com/file/p12033164/creating_modify.fo
>> creating_modify.fo that exhibits this problem.
>>
>> I am using Windows XP.
>
> I can't reproduce the missing glyph (#) issue on Mac OS X with FOP
> trunk (from two weeks ago).
>
> OTOH, the issue concerning combination of hyphenation and preserved
> linefeeds is a known bug.
> See also: http://issues.apache.org/bugzilla/show_bug.cgi?id=38264.
>
>
> Cheers
>
> Andreas
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Repetition-of-%22pre%22-formatted-strings-when-wrap-otion%3D%22wrap%22-tf4224485.html#a12078908
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Repetition of "pre" formatted strings when wrap-otion="wrap"
Posted by Andreas L Delmelle <a_...@pandora.be>.
On Aug 7, 2007, at 14:22, DavidJKelly wrote:
>
> Thank you for checking this, Vincent. I am attaching a small,
> complete
> sample FO http://www.nabble.com/file/p12033164/creating_modify.fo
> creating_modify.fo that exhibits this problem.
>
> I am using Windows XP.
I can't reproduce the missing glyph (#) issue on Mac OS X with FOP
trunk (from two weeks ago).
OTOH, the issue concerning combination of hyphenation and preserved
linefeeds is a known bug.
See also: http://issues.apache.org/bugzilla/show_bug.cgi?id=38264.
Cheers
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Repetition of "pre" formatted strings when wrap-otion="wrap"
Posted by DavidJKelly <dk...@scriptorium.com>.
Thank you for checking this, Vincent. I am attaching a small, complete
sample FO http://www.nabble.com/file/p12033164/creating_modify.fo
creating_modify.fo that exhibits this problem.
I am using Windows XP.
Regards,
David Kelly
Vincent Hennebert-3 wrote:
>
> Hi David,
>
> I can’t reproduce your problem. Can you please send a complete (and
> small, if possible) FO file as attachment? Also, which OS are you using?
>
> Thanks,
> Vincent
>
> DavidJKelly a écrit :
>> Has anyone seen this problem? From the DITA-OT xsl:fo stylesheets, the
>> attribute set for "pre" results in a certain set of attributes (shown in
>> example below). The contained text is repeated in the output with a #
>> character where the linebreaks were, then ends with broken text. For
>> example this fo source...
>>
>> <fo:block space-before="1.2em" space-after="0.8em"
>> white-space-treatment="preserve" white-space-collapse="false"
>> linefeed-treatment="preserve" wrap-option="wrap"
>> background-color="#f0f0f0"
>> font-family="Courier" line-height="106%" font-size="9pt">codeblock w/hard
>> return:
>> and another one:
>> blah</fo:block>
>>
>> ...results in this output in the PDF:
>>
>> codeblock w/hard return:#and
>> another one:#blah
>> codeblock w/hard re
>> turn:#and another
>> oth
>>
>> However, when I set wrap-option="no-wrap", the text renders correctly.
>>
>> I would like to be able to wrap "pre" formatted text if it encounters a
>> text
>> margin if possible. Would this be characterized as a bug, or is there
>> some
>> other combination of settings that would be required?
>>
>> Thank you as always for the help,
>> David
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Repetition-of-%22pre%22-formatted-strings-when-wrap-otion%3D%22wrap%22-tf4224485.html#a12033164
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Repetition of "pre" formatted strings when wrap-otion="wrap"
Posted by Vincent Hennebert <vi...@anyware-tech.com>.
Hi David,
I can’t reproduce your problem. Can you please send a complete (and
small, if possible) FO file as attachment? Also, which OS are you using?
Thanks,
Vincent
DavidJKelly a écrit :
> Has anyone seen this problem? From the DITA-OT xsl:fo stylesheets, the
> attribute set for "pre" results in a certain set of attributes (shown in
> example below). The contained text is repeated in the output with a #
> character where the linebreaks were, then ends with broken text. For
> example this fo source...
>
> <fo:block space-before="1.2em" space-after="0.8em"
> white-space-treatment="preserve" white-space-collapse="false"
> linefeed-treatment="preserve" wrap-option="wrap" background-color="#f0f0f0"
> font-family="Courier" line-height="106%" font-size="9pt">codeblock w/hard
> return:
> and another one:
> blah</fo:block>
>
> ...results in this output in the PDF:
>
> codeblock w/hard return:#and
> another one:#blah
> codeblock w/hard re
> turn:#and another
> oth
>
> However, when I set wrap-option="no-wrap", the text renders correctly.
>
> I would like to be able to wrap "pre" formatted text if it encounters a text
> margin if possible. Would this be characterized as a bug, or is there some
> other combination of settings that would be required?
>
> Thank you as always for the help,
> David
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org