1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-24 13:33:01 +03:00

html: Add newline to error message

This commit is contained in:
Nick Wellnhofer
2025-07-10 11:23:44 +02:00
parent bc0bb67b57
commit 0c948334a8
2 changed files with 3 additions and 2 deletions

View File

@@ -420,7 +420,7 @@ invalid:
/* Only report the first error */
if ((ctxt->input->flags & XML_INPUT_ENCODING_ERROR) == 0) {
htmlParseErr(ctxt, XML_ERR_INVALID_ENCODING,
"Invalid bytes in character encoding", NULL, NULL);
"Invalid bytes in character encoding\n", NULL, NULL);
ctxt->input->flags |= XML_INPUT_ENCODING_ERROR;
}

View File

@@ -14,7 +14,8 @@ SAX.endElement(head)
SAX.characters(
, 5)
SAX.startElement(body)
SAX.error: Invalid bytes in character encodingSAX.characters(�, 3)
SAX.error: Invalid bytes in character encoding
SAX.characters(�, 3)
SAX.endElement(body)
SAX.characters(
, 1)