Use C++11 string literals to make code easier to read.

This commit is contained in:
Thibaut Cuvelier 2024-02-26 15:24:36 +01:00
parent 3fdf3aafe8
commit 6b1441036f

View 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 + "\"";
}
}