From 6b1441036f35767c0b60af510222ba792b17b829 Mon Sep 17 00:00:00 2001 From: Thibaut Cuvelier Date: Mon, 26 Feb 2024 15:24:36 +0100 Subject: [PATCH] Use C++11 string literals to make code easier to read. --- src/insets/InsetIndex.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 + "\""; } } -- 2.39.5