From 9f8abcb25837acb1b61e39f347b852132992ec86 Mon Sep 17 00:00:00 2001 From: Christopher Dunn Date: Wed, 13 Jun 2007 17:02:01 +0000 Subject: [PATCH] Indentation is not perfect, but pretty good. Not sure how to perfect, given the difficulty of testing the last char written. --- src/lib_json/json_writer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib_json/json_writer.cpp b/src/lib_json/json_writer.cpp index b770c1e..500b322 100644 --- a/src/lib_json/json_writer.cpp +++ b/src/lib_json/json_writer.cpp @@ -672,7 +672,7 @@ StyledStreamWriter::writeIndent() *document_ << '\n'; } */ - *document_ << indentString_; + *document_ << '\n' << indentString_; }