aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo/flow/Block.java
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2005-06-09 06:45:49 +0000
committerJeremias Maerki <jeremias@apache.org>2005-06-09 06:45:49 +0000
commitdd08f131b250a44f7b900b895deadf70981114fa (patch)
treefabf6aadb9d3737cdded9e767394da8f83536219 /src/java/org/apache/fop/fo/flow/Block.java
parent1df150030c51c3531614092fdde43055b380093a (diff)
downloadxmlgraphics-fop-dd08f131b250a44f7b900b895deadf70981114fa.tar.gz
xmlgraphics-fop-dd08f131b250a44f7b900b895deadf70981114fa.zip
Improvement for FOText instance creation. The text is consolidated into single FOText nodes instead of multiple ones due to multiple SAX characters() calls. This fixes some of the layout engine tests that failed in certain environments.
Submitted by: "Hock Szabolcs" <Hock.Szabolcs.at.t-online.co.hu> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198724 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/flow/Block.java')
-rw-r--r--src/java/org/apache/fop/fo/flow/Block.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/fo/flow/Block.java b/src/java/org/apache/fop/fo/flow/Block.java
index 73fd6bf9c..a1c03be5a 100644
--- a/src/java/org/apache/fop/fo/flow/Block.java
+++ b/src/java/org/apache/fop/fo/flow/Block.java
@@ -174,6 +174,7 @@ public class Block extends FObjMixed {
* @see org.apache.fop.fo.FONode#endOfNode
*/
protected void endOfNode() throws FOPException {
+ super.endOfNode();
handleWhiteSpace();
getFOEventHandler().endBlock(this);
}
@@ -330,6 +331,7 @@ public class Block extends FObjMixed {
* @see org.apache.fop.fo.FONode#addChildNode(FONode)
*/
public void addChildNode(FONode child) throws FOPException {
+ flushText();
// Handle whitespace based on values of properties
// Handle a sequence of inline-producing child nodes in
// one pass