From 3a8527e26dff867b2a9513a5ee9b7da6a86814d6 Mon Sep 17 00:00:00 2001 From: "Maarten L. Hekkelman" Date: Wed, 11 Mar 2026 16:16:46 +0100 Subject: [PATCH] fix regression in output --- src/category.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/category.cpp b/src/category.cpp index 4b75bae..8eb2c86 100644 --- a/src/category.cpp +++ b/src/category.cpp @@ -2091,11 +2091,11 @@ void category::write_cif(std::ostream &os, const std::vector &order, b if (v == nullptr) continue; - if (v->is_string() and v->sv().find('\n') == std::string_view::npos) + if (auto s = v->str(); s.find('\n') == std::string_view::npos) { - std::size_t l = v->sv().length(); + std::size_t l = s.length(); - if (not sac_parser::is_unquoted_string(v->sv())) + if (not sac_parser::is_unquoted_string(s)) l += 2; if (l > 132)