From a976183dc95a8b7a9bd7a308c3ea94f08982c426 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 24 Oct 2011 16:27:56 +0200 Subject: Do not suppress empty lines from output They could be added for formatting. --- odb/emitter.cxx | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) (limited to 'odb/emitter.cxx') diff --git a/odb/emitter.cxx b/odb/emitter.cxx index 42b88b3..2989ffb 100644 --- a/odb/emitter.cxx +++ b/odb/emitter.cxx @@ -31,24 +31,21 @@ sync () s.resize (n - 1); } - if (!s.empty ()) - { - // Temporary restore output diversion. - // - bool r (false); - context& ctx (context::current ()); + // Temporary restore output diversion. + // + bool r (false); + context& ctx (context::current ()); - if (ctx.os.rdbuf () == this) - { - ctx.restore (); - r = true; - } + if (ctx.os.rdbuf () == this) + { + ctx.restore (); + r = true; + } - e_.line (s); + e_.line (s); - if (r) - ctx.diverge (this); - } + if (r) + ctx.diverge (this); str (string ()); return 0; -- cgit v1.1