mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
another small patch from Mark Vadoc Daniel
* testHTML.c: another small patch from Mark Vadoc Daniel
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
Tue Jan 13 21:50:05 CET 2004 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
|
* testHTML.c: another small patch from Mark Vadoc
|
||||||
|
|
||||||
Tue Jan 13 21:39:58 CET 2004 Daniel Veillard <daniel@veillard.com>
|
Tue Jan 13 21:39:58 CET 2004 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* HTMLparser.c relaxng.c testRelax.c testSchemas.c: applied
|
* HTMLparser.c relaxng.c testRelax.c testSchemas.c: applied
|
||||||
|
@@ -709,6 +709,7 @@ parseAndPrintFile(char *filename) {
|
|||||||
/*
|
/*
|
||||||
* build an HTML tree from a string;
|
* build an HTML tree from a string;
|
||||||
*/
|
*/
|
||||||
|
#ifdef LIBXML_PUSH_ENABLED
|
||||||
if (push) {
|
if (push) {
|
||||||
FILE *f;
|
FILE *f;
|
||||||
|
|
||||||
@@ -736,6 +737,9 @@ parseAndPrintFile(char *filename) {
|
|||||||
} else {
|
} else {
|
||||||
doc = htmlReadFile(filename, NULL, options);
|
doc = htmlReadFile(filename, NULL, options);
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
doc = htmlReadFile(filename,NULL,options);
|
||||||
|
#endif
|
||||||
if (doc == NULL) {
|
if (doc == NULL) {
|
||||||
xmlGenericError(xmlGenericErrorContext,
|
xmlGenericError(xmlGenericErrorContext,
|
||||||
"Could not parse %s\n", filename);
|
"Could not parse %s\n", filename);
|
||||||
|
Reference in New Issue
Block a user