mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-05 05:39:53 +01:00
Cleanup string escaping in XmlWriter with raw string literals
This commit is contained in:
parent
9f091cbe9d
commit
0221148ac3
@ -302,7 +302,7 @@ namespace {
|
||||
}
|
||||
|
||||
void XmlWriter::writeStylesheetRef( std::string const& url ) {
|
||||
m_os << "<?xml-stylesheet type=\"text/xsl\" href=\"" << url << "\"?>\n";
|
||||
m_os << R"(<?xml-stylesheet type="text/xsl" href=")" << url << R"("?>)" << '\n';
|
||||
}
|
||||
|
||||
XmlWriter& XmlWriter::writeBlankLine() {
|
||||
@ -324,7 +324,7 @@ namespace {
|
||||
}
|
||||
|
||||
void XmlWriter::writeDeclaration() {
|
||||
m_os << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
|
||||
m_os << R"(<?xml version="1.0" encoding="UTF-8"?>)" << '\n';
|
||||
}
|
||||
|
||||
void XmlWriter::newlineIfNecessary() {
|
||||
|
Loading…
Reference in New Issue
Block a user