From: Thibaut Cuvelier Date: Mon, 26 Feb 2024 14:24:36 +0000 (+0100) Subject: Use C++11 string literals to make code easier to read. X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=6b1441036f35767c0b60af510222ba792b17b829;p=features.git Use C++11 string literals to make code easier to read. --- diff --git a/src/insets/InsetIndex.cpp b/src/insets/InsetIndex.cpp index 68669b0b7e..64bb398099 100644 --- a/src/insets/InsetIndex.cpp +++ b/src/insets/InsetIndex.cpp @@ -505,9 +505,9 @@ void InsetIndex::docbook(XMLStream & xs, OutputParams const & runparams) const // Generate the attributes. docstring id = xml::cleanID(newIndexTerms); if (hasStartRange) { - attrs = indexType + " class=\"startofrange\" xml:id=\"" + id + "\""; + attrs = indexType + R"( class="startofrange" xml:id=")" + id + "\""; } else { - attrs = " class=\"endofrange\" startref=\"" + id + "\""; + attrs = R"( class="endofrange" startref=")" + id + "\""; } }