diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-08-16T10·32+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-08-16T10·32+0000 |
commit | 18e4ac0fc6bd1bc01d92d011e4629cacc3bec016 (patch) | |
tree | d9dccd46943c3d68595a2fc45f9ca77be776dc67 /src/libutil/xml-writer.hh | |
parent | fe101fa7851c3eccb79441ed7f5805e13934254f (diff) |
* `nix-instantiate --{eval|parse}-only --xml': print an XML
representation instead of an ATerm. * Indent XML output.
Diffstat (limited to 'src/libutil/xml-writer.hh')
-rw-r--r-- | src/libutil/xml-writer.hh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libutil/xml-writer.hh b/src/libutil/xml-writer.hh index ae6c76ff2c9b..8c203a3486f0 100644 --- a/src/libutil/xml-writer.hh +++ b/src/libutil/xml-writer.hh @@ -18,13 +18,14 @@ private: ostream & output; + bool indent; bool closed; list<string> pendingElems; public: - XMLWriter(ostream & output); + XMLWriter(bool indent, ostream & output); ~XMLWriter(); void close(); @@ -40,6 +41,8 @@ public: private: void writeAttrs(const XMLAttrs & attrs); + + void indent_(unsigned int depth); }; |