Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix typos in xmltest.cpp
Browse files Browse the repository at this point in the history
Found via `codespell -q 3 -S "./resources/dream.xml" -L currenty,ot,previousy,te,ue`
luzpaz authored Jan 25, 2025
1 parent 57ec941 commit 008e329
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xmltest.cpp
Original file line number Diff line number Diff line change
@@ -1005,7 +1005,7 @@ int main( int argc, const char ** argv )
FILE* fp1 = fopen("resources/out/printer_1.xml", "w");
XMLPrinter printer(fp1);

printer.PushDeclaration("version = '1.0' enconding = 'utf-8'");
printer.PushDeclaration("version = '1.0' encoding = 'utf-8'");

printer.OpenElement("foo");
printer.PushAttribute("attrib-text", "text");
@@ -1096,7 +1096,7 @@ int main( int argc, const char ** argv )

const XMLDeclaration* declaration = cdoc.FirstChild()->ToDeclaration();
const char* declaration_value = declaration->Value();
XMLTest("PushDeclaration() test", "version = '1.0' enconding = 'utf-8'", declaration_value);
XMLTest("PushDeclaration() test", "version = '1.0' encoding = 'utf-8'", declaration_value);
}
}

@@ -2639,7 +2639,7 @@ int main( int argc, const char ** argv )
"<?xml version=\"1.0\"?>\n" // 2 DecL
"<root>\r\n" // 3 Element
"\n" // 4
"text contining new line \n" // 5 Text
"text containing new line \n" // 5 Text
" and also containing crlf \r\n" // 6
"<sub><![CDATA[\n" // 7 Element Text
"cdata containing new line \n" // 8

0 comments on commit 008e329

Please sign in to comment.