aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/layout/BlockArea.java
diff options
context:
space:
mode:
authorfotis <fotis@unknown>2000-12-20 18:20:18 +0000
committerfotis <fotis@unknown>2000-12-20 18:20:18 +0000
commit072cbc6c03eb351b9707d74a554b986082504d8b (patch)
tree50e4075958a249616ddf5aba32696e222bea9902 /src/org/apache/fop/layout/BlockArea.java
parent4978d870788545c99410908cdb9fe504263af925 (diff)
downloadxmlgraphics-fop-072cbc6c03eb351b9707d74a554b986082504d8b.tar.gz
xmlgraphics-fop-072cbc6c03eb351b9707d74a554b986082504d8b.zip
using leader-length.optimum instead of maximum for line break and length calculation
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193915 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/layout/BlockArea.java')
-rw-r--r--src/org/apache/fop/layout/BlockArea.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/org/apache/fop/layout/BlockArea.java b/src/org/apache/fop/layout/BlockArea.java
index fc31e89f2..9f65f5bdc 100644
--- a/src/org/apache/fop/layout/BlockArea.java
+++ b/src/org/apache/fop/layout/BlockArea.java
@@ -230,8 +230,11 @@ public class BlockArea extends Area {
this.currentLineArea.changeColor(red, green, blue);
//check whether leader fits into the (rest of the) line
+ //using length.optimum to determine where to break the line as defined
+ // in the xsl:fo spec: "User agents may choose to use the value of 'leader-length.optimum'
+ // to determine where to break the line" (7.20.4)
//if leader is longer then create a new LineArea and put leader there
- if (leaderLengthMinimum <= (this.getContentWidth() -
+ if (leaderLengthOptimum <= (this.getContentWidth() -
this.currentLineArea.finalWidth -
this.currentLineArea.pendingWidth)) {
this.currentLineArea.addLeader(leaderPattern,