diff options
author | Stef Walter <stef@memberwebs.com> | 2005-06-08 16:14:54 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2005-06-08 16:14:54 +0000 |
commit | 099b3f5ad0a70070fd183b85aeee7d2420960f33 (patch) | |
tree | d367401daaf77502bdfc76e0072bc78a2e98d5c2 /src/xmlfixups.h | |
parent | cf1f502a9fd8bd26e41c045ce6898a4ee29d40a8 (diff) |
Added option for pretty printing whitespace in XML.
Diffstat (limited to 'src/xmlfixups.h')
-rw-r--r-- | src/xmlfixups.h | 8 |
1 files changed, 8 insertions, 0 deletions
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; |