From 56a8cfa2a302f239bfe6c74dc30cf061b02c1a76 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Sat, 26 Jul 2025 17:28:41 -0400 Subject: [PATCH] xo-expression xo-reader: type unifier + misc improvements --- include/xo/indentlog/print/ppdetail_atomic.hpp | 8 ++++---- include/xo/indentlog/print/pretty.hpp | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) 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;