From: Jeremias Maerki Date: Thu, 2 Feb 2006 09:01:29 +0000 (+0000) Subject: Don't swallow characters if the handler does not implement LexicalHandler. X-Git-Tag: fop-0_92-beta~153 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=91d8c38fa99ca844c6c6eb4bfd131b8006884b4c;p=xmlgraphics-fop.git 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 --- 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: