You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2003/07/16 11:39:47 UTC

DO NOT REPLY [Bug 21641] New: - Infinit loop within too small areas using hyphenation

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21641>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21641

Infinit loop within too small areas using hyphenation

           Summary: Infinit loop within too small areas using hyphenation
           Product: Fop
           Version: 0.20.5
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: general
        AssignedTo: fop-dev@xml.apache.org
        ReportedBy: a.mehling@stuertz.de


Using hyphenate="true" rendering text within a too small area (e.g. a small 
table column) results in an inifite loop. The loop appeares in FOText.java 
line 280 ("while ( start != -1)") which never ends, because 
LineAread.addText(...) never returns -1. I think The bug should be fixed in 
LineAread.addText(...). Example document:

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
	<fo:layout-master-set>
		<fo:simple-page-master margin="2cm" master-name="simple" 
page-height="29.7cm" page-width="21cm">
			<fo:region-body/>
			<fo:region-before extent="3cm"/>
			<fo:region-after extent="1.5cm"/>
		</fo:simple-page-master>
	</fo:layout-master-set>
	<fo:page-sequence master-reference="simple" hyphenate="true" 
language="en">
		<fo:flow flow-name="xsl-region-body">
			<fo:table table-layout="fixed">
			<fo:table-column column-width="4mm"/>
				<fo:table-body>
					<fo:table-row>
						<fo:table-cell 
border-color="black" border-style="solid" border-width="thin">
							<fo:block 
font-size="8pt" font-family="Times" margin="1mm">verylongword</fo:block>
						</fo:table-cell>
					</fo:table-row>
				</fo:table-body>
			</fo:table>
		</fo:flow>
	</fo:page-sequence>
</fo:root>

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org