From 1ed1d6758ed84c0199be2c17e605976041404f11 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Thu, 13 Feb 2003 15:59:20 +0000 Subject: [PATCH] Page body wasn't rendered to XML. Why did nobody find out before? Submitted by: "Diwan, Shridhar" git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_20_2-maintain@195941 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/render/xml/XMLRenderer.java | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/src/org/apache/fop/render/xml/XMLRenderer.java b/src/org/apache/fop/render/xml/XMLRenderer.java index f7e8b3f44..7cd4e0eb4 100644 --- a/src/org/apache/fop/render/xml/XMLRenderer.java +++ b/src/org/apache/fop/render/xml/XMLRenderer.java @@ -1,6 +1,6 @@ /* * $Id$ - * Copyright (C) 2001-2002 The Apache Software Foundation. All rights reserved. + * Copyright (C) 2001-2003 The Apache Software Foundation. All rights reserved. * For details on use and redistribution please refer to the * LICENSE file included with these sources. */ @@ -449,14 +449,21 @@ public class XMLRenderer implements Renderer { after = page.getAfter(); start = page.getStart(); end = page.getEnd(); - if (before != null) + if (before != null) { before.render(this); - if (after != null) + } + if (after != null) { after.render(this); - if (start != null) + } + if (start != null) { start.render(this); - if (end != null) + } + if (end != null) { end.render(this); + } + if (body != null) { + body.render(this); + } writeEndTag(""); } -- 2.39.5