From 91d8c38fa99ca844c6c6eb4bfd131b8006884b4c Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Thu, 2 Feb 2006 09:01:29 +0000 Subject: [PATCH] Don't swallow characters if the handler does not implement LexicalHandler. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@374312 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/render/xml/XMLXMLHandler.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/java/org/apache/fop/render/xml/XMLXMLHandler.java b/src/java/org/apache/fop/render/xml/XMLXMLHandler.java index ff87cf057..eb1f4946b 100644 --- a/src/java/org/apache/fop/render/xml/XMLXMLHandler.java +++ b/src/java/org/apache/fop/render/xml/XMLXMLHandler.java @@ -1,5 +1,5 @@ /* - * Copyright 1999-2005 The Apache Software Foundation. + * Copyright 1999-2006 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,8 @@ public class XMLXMLHandler implements XMLHandler { lh.startCDATA(); handler.characters(ca, 0, ca.length); lh.endCDATA(); + } else { + handler.characters(ca, 0, ca.length); } break; case Node.ENTITY_REFERENCE_NODE: -- 2.39.5