Revision: 7856
http://svn.sourceforge.net/foray/?rev=7856&view=rev
Author: victormote
Date: 2006-09-02 15:05:34 -0700 (Sat, 02 Sep 2006)
Log Message:
-----------
Remove some code which seems to be redundant. The issue of whether text can be included in the FO is handled at the class level.
Modified Paths:
--------------
trunk/foray/foray-fotree/src/java/org/foray/fotree/FObjMixed.java
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/FObjMixed.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/FObjMixed.java 2006-09-02 21:39:29 UTC (rev 7855)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/FObjMixed.java 2006-09-02 22:05:34 UTC (rev 7856)
@@ -24,8 +24,6 @@
package org.foray.fotree;
-import org.foray.common.XMLCharacter;
-
import org.axsl.foR.FOTreeException;
/**
@@ -46,7 +44,7 @@
final int length, final String systemId, final int line,
final int column) {
if (textBuffer == null) {
- textBuffer = new StringBuffer();
+ textBuffer = new StringBuffer();
}
textBuffer.append(data,start,length);
}
@@ -74,14 +72,6 @@
if (this.getContainingBlock(null) != null) {
return true;
}
- /* We are not inside a block. If it is ignorable whitespace,
- * we will ignore it by not creating an FOText. Otherwise, it
- * should be reported as an error. */
- final char[] charArray = this.textBuffer.toString().toCharArray();
- if (XMLCharacter.isXMLWhitespace(charArray)) {
- return false;
- }
- this.throwException("PCDATA content must be inside an fo:block");
return false;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|