diff --git a/source/ps/XML/XMLWriter.cpp b/source/ps/XML/XMLWriter.cpp index 15e0d944c2..76989f9931 100644 --- a/source/ps/XML/XMLWriter.cpp +++ b/source/ps/XML/XMLWriter.cpp @@ -59,7 +59,7 @@ XMLWriter_File::XMLWriter_File() // Encoding is always UTF-8 - that's one of the only two guaranteed to be // supported by XML parsers (along with UTF-16), and there's not much need // to let people choose another. - m_Data = "\n"; + m_Data = "\n"; } bool XMLWriter_File::StoreVFS(const char* filename) diff --git a/source/ps/XML/XMLWriter.h b/source/ps/XML/XMLWriter.h index 1c88126b42..127b2e3dfb 100644 --- a/source/ps/XML/XMLWriter.h +++ b/source/ps/XML/XMLWriter.h @@ -50,7 +50,7 @@ end of XMLWriter.cpp. */ -// Encoding should usually be "utf-8" (or "iso-8859-1" to limit it to ASCII). +// Starts generating a new XML file. #define XML_Start() XMLWriter_File xml_file_ // Set pretty printing (newlines, tabs). Defaults to true. @@ -62,7 +62,7 @@ end of XMLWriter.cpp. // Start a new element: #define XML_Element(name) XMLWriter_Element xml_element_ (xml_file_, name) -// Add text to the interior of the current element: ...>text +// Add text to the interior of the current element: <...>text #define XML_Text(text) xml_element_.Text(text) // Add an attribute to the current element: <... name="value" ...> diff --git a/source/ps/XML/tests/test_XMLWriter.h b/source/ps/XML/tests/test_XMLWriter.h index aab6fbe9e1..ef48c62662 100644 --- a/source/ps/XML/tests/test_XMLWriter.h +++ b/source/ps/XML/tests/test_XMLWriter.h @@ -53,7 +53,7 @@ public: CStr output = XML_GetOutput(); TS_ASSERT_STR_EQUALS(output, - "\n" + "\n" "\n" "\n" "\t\n" @@ -68,7 +68,7 @@ public: "\t\t\tm\n" "\t\t\n" "\t\n" - "" + "" ); } @@ -89,7 +89,7 @@ public: CStr output = XML_GetOutput(); TS_ASSERT_STR_EQUALS(output, - "\n" + "\n" "\n" "\n" "\t\n" @@ -117,7 +117,7 @@ public: CStr output = XML_GetOutput(); TS_ASSERT_STR_EQUALS(output, - "\n" + "\n" "text" ); } @@ -134,7 +134,7 @@ public: CStr output = XML_GetOutput(); TS_ASSERT_STR_EQUALS(output, - "\n" + "\n" "\n" "ab" ); @@ -155,7 +155,7 @@ public: CStr output = XML_GetOutput(); TS_ASSERT_STR_EQUALS(output, - "\n\n" + "\n\n" "\xC9\x91" ); } @@ -171,7 +171,7 @@ public: CStr output = XML_GetOutput(); TS_ASSERT_STR_EQUALS(output, - "\n\n" + "\n\n" " ]]> < & "" \"/>" ); } @@ -187,7 +187,7 @@ public: CStr output = XML_GetOutput(); TS_ASSERT_STR_EQUALS(output, - "\n\n" + "\n\n" "abc > ]]> < & \"\" " ); } @@ -203,7 +203,7 @@ public: CStr output = XML_GetOutput(); TS_ASSERT_STR_EQUALS(output, - "\n\n" + "\n\n" "\n" "\t\n" ""