[ 
https://issues.apache.org/jira/browse/FOP-2239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13644657#comment-13644657
 ] 

Seifeddine Dridi commented on FOP-2239:
---------------------------------------

The culprit code is in file TextLayoutManager.java lines [1174-1176], comment 
the while loop and you should be fine :). However, that change might bring 
regressions so we need some clarifications from a FOP developer before we can 
call it a fix. 
                
> Soft hyphens appear in mid line in PDF output
> ---------------------------------------------
>
>                 Key: FOP-2239
>                 URL: https://issues.apache.org/jira/browse/FOP-2239
>             Project: Fop
>          Issue Type: Bug
>          Components: pdf
>    Affects Versions: 1.1, trunk
>         Environment: $ java -version
> java version "1.7.0_17"
> Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
> Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
>            Reporter: Mark Craig
>         Attachments: simple.fo, simple.pdf
>
>
> When producing PDF, soft hyphens show up in mid line when followed by 
> punctuation characters such as ., ], and ".
> In the test case that I will attach to this issue:
> <fo:block><fo:inline font-size="0.9em">.&#xAD;.&#xAD;</fo:inline></fo:block>
> <fo:block><fo:inline font-size="0.9em">.&#xAD; .&#xAD;</fo:inline></fo:block>
> <fo:block><fo:inline font-size="0.9em">.&#xAD;</fo:inline></fo:block>
> <fo:block><fo:inline font-size="0.9em">.&#xAD;]</fo:inline></fo:block>
> <fo:block><fo:inline font-size="0.9em">.&#xAD;\</fo:inline></fo:block>
> <fo:block><fo:inline font-size="0.9em">.&#xAD;"</fo:inline></fo:block>
> <fo:block><fo:inline font-size="0.9em">.&#xAD;a</fo:inline></fo:block>
> <fo:block><fo:inline font-size="0.9em">.&#xAD;Z</fo:inline></fo:block>
> looks like this in the PDF:
> .-.
> . .
> .
> .-]
> .\
> .-"
> .a
> .Z
> The generation does not display any errors:
> $ fop simple.fo simple.pdf 
> Rendered page #1.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to