diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-10-24 16:27:56 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-10-24 16:27:56 +0200 |
commit | a976183dc95a8b7a9bd7a308c3ea94f08982c426 (patch) | |
tree | 39d351a99d134f6b25b9d0d83e9954edce954951 /odb/emitter.cxx | |
parent | 3831dbb9c8aa44654f218c4607f396558fce9747 (diff) |
Do not suppress empty lines from output
They could be added for formatting.
Diffstat (limited to 'odb/emitter.cxx')
-rw-r--r-- | odb/emitter.cxx | 27 |
1 files changed, 12 insertions, 15 deletions
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; |