summaryrefslogtreecommitdiff
path: root/src/KM_xml.h
diff options
context:
space:
mode:
authorjhurst <jhurst@cinecert.com>2013-12-05 01:35:52 +0000
committerjhurst <>2013-12-05 01:35:52 +0000
commitece36546e5233fac27fed566802a9fec2bc3ef8c (patch)
treea3dfdb42c517beb0bbb5c214df1ff1b22cd5ebce /src/KM_xml.h
parent4dcacd557953d6976a6fd0fd389e3aeb95b38c7f (diff)
allow suppression of xml formatting spaces
Diffstat (limited to 'src/KM_xml.h')
-rw-r--r--src/KM_xml.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/KM_xml.h b/src/KM_xml.h
index 80db74b..5d499e5 100644
--- a/src/KM_xml.h
+++ b/src/KM_xml.h
@@ -112,8 +112,9 @@ namespace Kumu
XMLElement* AddChildWithContent(const char* name, const std::string& value);
XMLElement* AddChildWithPrefixedContent(const char* name, const char* prefix, const char* value);
void AddComment(const char* value);
- void Render(std::string&) const;
- void RenderElement(std::string& outbuf, ui32_t depth) const;
+ void Render(std::string& str) const { Render(str, true); }
+ void Render(std::string&, const bool& pretty) const;
+ void RenderElement(std::string& outbuf, const ui32_t& depth, const bool& pretty) const;
// querying
inline const std::string& GetBody() const { return m_Body; }