From: Keiron Liddle Date: Tue, 2 Jan 2001 04:05:11 +0000 (+0000) Subject: fixed slight error when determining if will generate area X-Git-Tag: fop-0_17_0~124 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=414070798e229232f01e60f9e7a3c9a8463353d8;p=xmlgraphics-fop.git fixed slight error when determining if will generate area git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193937 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/org/apache/fop/fo/FOText.java b/src/org/apache/fop/fo/FOText.java index f282dcffe..19210c03e 100644 --- a/src/org/apache/fop/fo/FOText.java +++ b/src/org/apache/fop/fo/FOText.java @@ -102,7 +102,7 @@ public class FOText extends FONode { if(this.whiteSpaceCollapse == WhiteSpaceCollapse.FALSE && length > 0) { return true; } - for (int i = start; i < start + length - 1; i++) { + for (int i = start; i < start + length; i++) { char ch = ca[i]; if (!((ch == ' ') || (ch == '\n') || (ch == '\r') || (ch == '\t'))) { // whitespace