jeremias 2005/02/02 06:19:06 Modified: src/java/org/apache/fop/layoutmgr LineLayoutManager.java Log: Bugfix for omitted empty lines caused by forced linefeeds. Revision Changes Path 1.38 +8 -1 xml-fop/src/java/org/apache/fop/layoutmgr/LineLayoutManager.java Index: LineLayoutManager.java =================================================================== RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/layoutmgr/LineLayoutManager.java,v retrieving revision 1.37 retrieving revision 1.38 diff -u -r1.37 -r1.38 --- LineLayoutManager.java 9 Dec 2004 15:53:36 -0000 1.37 +++ LineLayoutManager.java 2 Feb 2005 14:19:06 -0000 1.38 @@ -1,5 +1,5 @@ /* - * Copyright 1999-2004 The Apache Software Foundation. + * Copyright 1999-2005 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -111,6 +111,7 @@ lineHeight = lh; baseline = bl; } + } @@ -469,6 +470,12 @@ // add the new elements to the paragraph knuthPar.addAll(returnedList); if (bForceLinefeed) { + if (knuthPar.size() == 0) { + //only a forced linefeed on this line + //-> compensate with a zero width box + knuthPar.add(new KnuthBox(0, 0, 0, 0, + null, false)); + } knuthPar.endParagraph(); knuthPar = new Paragraph(); knuthPar.startParagraph(availIPD.opt);
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]