Bug 4511 - Underlining not applied to end of hyphenated line
Summary: Underlining not applied to end of hyphenated line
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: general (show other bugs)
Version: 0.15
Hardware: Sun Solaris
: P3 minor
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-30 02:17 UTC by Phil Endecott
Modified: 2012-04-01 06:27 UTC (History)
0 users



Attachments
Example showing underline + hyphenation problem (2.10 KB, text/xml)
2002-11-14 18:12 UTC, Jonathan Evraire
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Phil Endecott 2001-10-30 02:17:11 UTC
When text is both hyphenated and underlined, the partial word at the end of a
line does not get underlined.  For example:

<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
  <fo:layout-master-set>
    <fo:simple-page-master margin-right="25mm" margin-left="25mm"
                           margin-bottom="20mm" margin-top="15mm"
                           page-height="297mm" page-width="210mm"
                           master-name="a4">
      <fo:region-before extent="10mm"/>
      <fo:region-after extent="10mm"/>
      <fo:region-body margin-bottom="15mm" margin-top="15mm"/>
    </fo:simple-page-master>
  </fo:layout-master-set>
  <fo:page-sequence master-name="a4">
    <fo:flow flow-name="xsl-region-body">

      <fo:block language="en" hyphenate="true">
        <fo:inline text-decoration="underline">
          Thisparagraph illustratesaproblemwith hyphenationandunderlining.
          Whentextisbothhyphenatedandunderlined thepartialwordattheendof
          thelinewillnotbeunderlined.
        </fo:inline>
      </fo:block>
    </fo:flow>
  </fo:page-sequence>
</fo:root>

This comes out something like this:

Thisparagraph illustratesaproblemwith hyphenationandunderlining. Whentextisboth-
----------------------------------------------------------------

hyphenatedandunderlined thepartialwordattheendof thelinewillnotbeunderlined.
----------------------------------------------------------------------------

This is with version 0.20.2-RC.
Comment 1 Oleg Tkachenko 2002-11-14 17:09:00 UTC
Works fine in 0.20.4.
Comment 2 Jonathan Evraire 2002-11-14 18:01:02 UTC
I still have this problem using 0.20.4.  Will attach xsl-fo that produces this
behavior.
Comment 3 Jonathan Evraire 2002-11-14 18:12:49 UTC
Created attachment 3841 [details]
Example showing underline + hyphenation problem
Comment 4 Oleg Tkachenko 2002-11-14 20:11:46 UTC
You right, my mistake.
Comment 5 J.Pietschmann 2002-11-29 21:10:03 UTC
Should be fixed in CVS.
Comment 6 Oleg Tkachenko 2002-11-29 22:21:12 UTC
Right, Joerg (glad to see you again). Attached test case works fine using
fop0.20.5cvs. Phil, verify it please.
Comment 7 Glenn Adams 2012-04-01 06:27:59 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed