]> git.lyx.org Git - features.git/commitdiff
Use C++11 string literals to make code easier to read.
authorThibaut Cuvelier <tcuvelier@lyx.org>
Mon, 26 Feb 2024 14:24:36 +0000 (15:24 +0100)
committerThibaut Cuvelier <tcuvelier@lyx.org>
Mon, 26 Feb 2024 14:24:36 +0000 (15:24 +0100)
src/insets/InsetIndex.cpp

index 68669b0b7e1488b1c0be9227cf2f2f0e87bdea6e..64bb398099113cc3f8532b9ca00b0c00267f74ed 100644 (file)
@@ -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 + "\"";
                        }
                }