diff --git a/include/xo/indentlog/print/ppdetail_atomic.hpp b/include/xo/indentlog/print/ppdetail_atomic.hpp index d8036fe..3a14399 100644 --- a/include/xo/indentlog/print/ppdetail_atomic.hpp +++ b/include/xo/indentlog/print/ppdetail_atomic.hpp @@ -13,10 +13,10 @@ namespace xo { struct ppstate; // see pretty.hpp struct ppindentinfo; -// Defining this means ppdetail_atomic is not used. -// In that case where not explicitly specialized ppdetail will revert to ordinary printing for a type, -// instead of giving compile-time error about missing template specialization of ppdetail. -#define ppdetail_atomic ppdetail + // Defining this means ppdetail_atomic is not used. + // In that case where not explicitly specialized ppdetail will revert to ordinary printing for a type, + // instead of giving compile-time error about missing template specialization of ppdetail. +//#define ppdetail_atomic ppdetail struct ppindentinfo { ppindentinfo(ppstate * pps, std::uint32_t ci0, std::uint32_t indent_width, bool upto) diff --git a/include/xo/indentlog/print/pretty.hpp b/include/xo/indentlog/print/pretty.hpp index 9f17d64..aa50ca3 100644 --- a/include/xo/indentlog/print/pretty.hpp +++ b/include/xo/indentlog/print/pretty.hpp @@ -440,7 +440,8 @@ namespace xo { ppstate & ppstate::newline_pretty_tag(std::uint32_t ci, Name && name, Value && value) { - newline_indent(ci); + this->newline_indent(ci); + this->current_indent_ = ci; this->pretty(rtag(name, value)); return *this;