aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/xml-writer.hh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-08-16 10:32:30 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-08-16 10:32:30 +0000
commit18e4ac0fc6bd1bc01d92d011e4629cacc3bec016 (patch)
treed9dccd46943c3d68595a2fc45f9ca77be776dc67 /src/libutil/xml-writer.hh
parentfe101fa7851c3eccb79441ed7f5805e13934254f (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.hh5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libutil/xml-writer.hh b/src/libutil/xml-writer.hh
index ae6c76ff2..8c203a348 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);
};