From 5f46259914d758efcfb145ea641341b78ef7d214 Mon Sep 17 00:00:00 2001 From: ado Date: Mon, 31 Jul 2023 21:52:08 +0200 Subject: [PATCH] Merge with bugfix --- include/ss/parser.hpp | 2 +- test/test_parser2.cpp | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/ss/parser.hpp b/include/ss/parser.hpp index 131d60a..9925f2b 100644 --- a/include/ss/parser.hpp +++ b/include/ss/parser.hpp @@ -656,7 +656,7 @@ private: if constexpr (quoted_multiline_enabled) { while (unterminated_quote()) { - size -= next_line_converter_.size_shifted(); + next_line_size_ -= next_line_converter_.size_shifted(); if (multiline_limit_reached(limit)) { return; diff --git a/test/test_parser2.cpp b/test/test_parser2.cpp index abf3317..e2e1813 100644 --- a/test/test_parser2.cpp +++ b/test/test_parser2.cpp @@ -593,9 +593,7 @@ TEST_CASE("parser test various cases version 2") { using escape = ss::escape<'\\'>; using multiline = ss::multiline; -// TODO uncomment -// #ifdef CMAKE_GITHUB_CI -#if 0 +#ifdef CMAKE_GITHUB_CI using multiline_r = ss::multiline_restricted<10>; test_combinations_with_trim_and_error_options<>();