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() {