From 0221148ac36ef88dce2fcc49a4fce78fed14ddb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Sat, 29 May 2021 14:11:50 +0200 Subject: [PATCH] Cleanup string escaping in XmlWriter with raw string literals --- src/catch2/internal/catch_xmlwriter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/catch2/internal/catch_xmlwriter.cpp b/src/catch2/internal/catch_xmlwriter.cpp index 80ff4108..f8e18240 100644 --- a/src/catch2/internal/catch_xmlwriter.cpp +++ b/src/catch2/internal/catch_xmlwriter.cpp @@ -302,7 +302,7 @@ namespace { } void XmlWriter::writeStylesheetRef( std::string const& url ) { - m_os << "\n"; + m_os << R"()" << '\n'; } XmlWriter& XmlWriter::writeBlankLine() { @@ -324,7 +324,7 @@ namespace { } void XmlWriter::writeDeclaration() { - m_os << "\n"; + m_os << R"()" << '\n'; } void XmlWriter::newlineIfNecessary() {