From e23d3895a7a04b120e57ce204fe80f7476c5506f Mon Sep 17 00:00:00 2001 From: Andreas Stefl Date: Sun, 18 Aug 2024 15:28:21 +0200 Subject: [PATCH] fix --- src/odr/internal/html/html_writer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/odr/internal/html/html_writer.cpp b/src/odr/internal/html/html_writer.cpp index 329a9928..5fc3ee92 100644 --- a/src/odr/internal/html/html_writer.cpp +++ b/src/odr/internal/html/html_writer.cpp @@ -2,9 +2,9 @@ #include +#include #include #include -#include #include namespace odr::internal::html { @@ -273,7 +273,7 @@ void HtmlWriter::write_element_end(const std::string &name) { } bool HtmlWriter::is_inline_mode() const { - return std::ranges::all_of(m_stack, [](const StackElement &element) { + return std::ranges::any_of(m_stack, [](const StackElement &element) { return element.inline_element; }); }