jeremias 2005/02/02 07:03:55
Modified: src/java/org/apache/fop/layoutmgr TextLayoutManager.java
Log:
Don't ignore linefeeds when building Knuth elements.
Revision Changes Path
1.30 +7 -10
xml-fop/src/java/org/apache/fop/layoutmgr/TextLayoutManager.java
Index: TextLayoutManager.java
===================================================================
RCS file:
/home/cvs/xml-fop/src/java/org/apache/fop/layoutmgr/TextLayoutManager.java,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- TextLayoutManager.java 25 Jan 2005 10:55:47 -0000 1.29
+++ TextLayoutManager.java 2 Feb 2005 15:03:55 -0000 1.30
@@ -788,16 +788,13 @@
iThisStart = iNextStart;
iTempStart = iNextStart;
MinOptMax wordIPD = new MinOptMax(0);
- for (;
- iTempStart < textArray.length
- && textArray[iTempStart] != SPACE
- && textArray[iTempStart] != NBSPACE;
- iTempStart ++) {
- // ignore newline characters
- if (textArray[iTempStart] != NEWLINE) {
- wordIPD.add
- (new
MinOptMax(fs.getCharWidth(textArray[iTempStart])));
- }
+ for (; iTempStart < textArray.length
+ && textArray[iTempStart] != SPACE
+ && textArray[iTempStart] != NBSPACE
+ && textArray[iTempStart] != NEWLINE;
+ iTempStart++) {
+ wordIPD.add(
+ new
MinOptMax(fs.getCharWidth(textArray[iTempStart])));
}
wordIPD.add(MinOptMax.multiply(letterSpaceIPD, (iTempStart -
iThisStart - 1)));
vecAreaInfo.add
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]