From: Vincent Hennebert Date: Mon, 23 Mar 2009 12:12:36 +0000 (+0000) Subject: Set svn:eol-style property on page-position-last_break-before_bugzilla46489.xml test... X-Git-Tag: fop-1_0~274 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=837cacd29624ddf4f1a58fc7069121ee8652c8f7;p=xmlgraphics-fop.git Set svn:eol-style property on page-position-last_break-before_bugzilla46489.xml test case. Simplified it by removing superfluous content and references to fonts that are not available by default. Fixed small indentation issue in ElementListUtils. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@757382 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/layoutmgr/ElementListUtils.java b/src/java/org/apache/fop/layoutmgr/ElementListUtils.java index 7e337dc6b..d3403cd6b 100644 --- a/src/java/org/apache/fop/layoutmgr/ElementListUtils.java +++ b/src/java/org/apache/fop/layoutmgr/ElementListUtils.java @@ -199,8 +199,7 @@ public final class ElementListUtils { * @return true if the list starts with a forced break */ public static boolean startsWithForcedBreak(List elems) { - return !elems.isEmpty() - && ((ListElement) elems.get(0)).isForcedBreak(); + return !elems.isEmpty() && ((ListElement) elems.get(0)).isForcedBreak(); } /** diff --git a/test/layoutengine/standard-testcases/page-position-last_break-before_bugzilla46489.xml b/test/layoutengine/standard-testcases/page-position-last_break-before_bugzilla46489.xml index d3c106852..d855ffd76 100644 --- a/test/layoutengine/standard-testcases/page-position-last_break-before_bugzilla46489.xml +++ b/test/layoutengine/standard-testcases/page-position-last_break-before_bugzilla46489.xml @@ -1,117 +1,93 @@ - - - - - -

- This test checks page-masters (reference orientation). -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Some text - - - - - - More text before break. More text before break. More text before break. - - - - - - - - - - - - - - - TEXT AFTER BREAK - - - - - - - - - - - - - - - - - - - - - blah blah blah - - - - blah blah blah - - - - - - - - - - - - - -
+ + + + + +

+ This test checks page-masters (reference orientation). +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + Some text + + + More text before break. More text before break. More text before + break. + + + + + + + + + TEXT AFTER + BREAK + + + + + + + + + blah blah blah + blah blah blah + + + + + + + + + + + + +