From 099b3f5ad0a70070fd183b85aeee7d2420960f33 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Wed, 8 Jun 2005 16:14:54 +0000 Subject: Added option for pretty printing whitespace in XML. --- src/xmlfixups.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/xmlfixups.h') diff --git a/src/xmlfixups.h b/src/xmlfixups.h index f51d4a8..85d7c7e 100644 --- a/src/xmlfixups.h +++ b/src/xmlfixups.h @@ -133,7 +133,14 @@ public: // Replace blocks with 'fix' elements like paragraphs void fixBlock(const DOM::Document& doc, DOM::Element& block); + // Make XML ready for pretty printing + void prettyXml(DOM::Document& doc); +// Internal Helpers +protected: + void internalPrettyXml(const DOM::Document& doc, DOM::Element& el, int level); + +// Data protected: enum @@ -145,6 +152,7 @@ protected: // Our tables cached for efficiency StringSet m_duplicates; + StringSet m_nopretty; StringSet m_removes; StringSet m_removeEmpty; StringSet m_consolidateStart; -- cgit v1.2.3