summaryrefslogtreecommitdiff
path: root/parser
diff options
context:
space:
mode:
Diffstat (limited to 'parser')
-rw-r--r--parser/parse.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/parser/parse.c b/parser/parse.c
index 9db02fb0..b288d016 100644
--- a/parser/parse.c
+++ b/parser/parse.c
@@ -152,7 +152,8 @@ gboolean parse_load(const gchar *path, const gchar *rootname,
/* XML_PARSE_BLANKS is needed apparently. When it loads a theme file,
without this option, the tree is weird and has extra nodes in it. */
- if ((*doc = xmlReadFile(path, NULL, XML_PARSE_NOBLANKS))) {
+ if ((*doc = xmlReadFile(path, NULL,
+ XML_PARSE_NOBLANKS | XML_PARSE_RECOVER))) {
*root = xmlDocGetRootElement(*doc);
if (!*root) {
xmlFreeDoc(*doc);