diff options
Diffstat (limited to 'cpp/src/Slice/OutputUtil.cpp')
-rw-r--r-- | cpp/src/Slice/OutputUtil.cpp | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/cpp/src/Slice/OutputUtil.cpp b/cpp/src/Slice/OutputUtil.cpp index a6ec2bb683c..d8087a6f2c4 100644 --- a/cpp/src/Slice/OutputUtil.cpp +++ b/cpp/src/Slice/OutputUtil.cpp @@ -172,9 +172,12 @@ Slice::Output::nl() void Slice::Output::sb() -{ - nl(); - _out << _blockStart; +{
+ if (_blockStart.length())
+ { + nl(); + _out << _blockStart;
+ } ++_pos; inc(); _separator = false; @@ -184,8 +187,11 @@ void Slice::Output::eb() { dec(); - nl(); - _out << _blockEnd; + if (_blockEnd.length())
+ {
+ nl(); + _out << _blockEnd;
+ } --_pos; } |