aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/fo/FOText.java
diff options
context:
space:
mode:
authorKeiron Liddle <keiron@apache.org>2000-12-12 03:12:52 +0000
committerKeiron Liddle <keiron@apache.org>2000-12-12 03:12:52 +0000
commit7464d725f84b11e5e55f210817b1b1a02726497a (patch)
tree3fc2fa98583bb933e910615fa29567364a4aa081 /src/org/apache/fop/fo/FOText.java
parentb6b0b4133426dfca547b243ac5d7a7ff44f48bff (diff)
downloadxmlgraphics-fop-7464d725f84b11e5e55f210817b1b1a02726497a.tar.gz
xmlgraphics-fop-7464d725f84b11e5e55f210817b1b1a02726497a.zip
Updated tables to handle headers, footers, keep-with
colspan is partly done Also fixed the bug where some of a block was missing if near end of page Code changes sponsored by Dresdner Bank, Germany git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193859 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/fo/FOText.java')
-rw-r--r--src/org/apache/fop/fo/FOText.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/org/apache/fop/fo/FOText.java b/src/org/apache/fop/fo/FOText.java
index 325aeccbc..f282dcffe 100644
--- a/src/org/apache/fop/fo/FOText.java
+++ b/src/org/apache/fop/fo/FOText.java
@@ -95,6 +95,23 @@ public class FOText extends FONode {
this.underlined = ul;
}
+ public boolean willCreateArea()
+ {
+ this.whiteSpaceCollapse = this.parent.properties.get(
+ "white-space-collapse").getEnum();
+ if(this.whiteSpaceCollapse == WhiteSpaceCollapse.FALSE && length > 0) {
+ return true;
+ }
+ for (int i = start; i < start + length - 1; i++) {
+ char ch = ca[i];
+ if (!((ch == ' ') || (ch == '\n') || (ch == '\r') ||
+ (ch == '\t'))) { // whitespace
+ return true;
+ }
+ }
+ return false;
+ }
+
public Status layout(Area area) throws FOPException {
if (!(area instanceof BlockArea)) {
MessageHandler.errorln("WARNING: text outside block area" +