From c06e765d13d65ae7d50feaae122323180abdd820 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Wed, 26 Jul 2023 23:24:29 +0300 Subject: [PATCH] html-to-text: be explicit with array type clang in CI fails to deduce it, so let's help it a bit. --- lib/utils/mu-html-to-text.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/utils/mu-html-to-text.cc b/lib/utils/mu-html-to-text.cc index de91ea8d..b6d97850 100644 --- a/lib/utils/mu-html-to-text.cc +++ b/lib/utils/mu-html-to-text.cc @@ -334,7 +334,7 @@ comment(Context& ctx) static bool // do we need a SPC separator for this tag? needs_separator(std::string_view tagname) { - constexpr std::array nosep_tags = { + constexpr std::array nosep_tags = { "b", "em", "i", "s", "strike", "tt", "u" }; return !seq_some(nosep_tags, [&](auto&& t){return matches(tagname, t);}); @@ -343,7 +343,7 @@ needs_separator(std::string_view tagname) static bool // do we need to skip the element completely? is_skip_element(std::string_view tagname) { - constexpr std::array skip_tags = { + constexpr std::array skip_tags = { "script", "style", "head", "meta" }; return seq_some(skip_tags, [&](auto&& t){return matches(tagname, t);}); @@ -422,7 +422,7 @@ html_escape_char(Context& ctx) { // we only care about a few accented chars, and add them unaccented, lowercase, since that's // we do for indexing anyway. - constexpr std::array escs = { + constexpr std::array escs = { "breve", "caron", "circ",