X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=parser%2Fparse.c;h=b288d016bfd744adee034370eea9ee07fa6d9e25;hb=ec67e96583fe0a1f9a1ef2f75b9293117c115319;hp=9db02fb067adf3139a1f1722faa54473e098452e;hpb=ec304c9e433e4b1cedf924ca64d783f05db7d42d;p=chaz%2Fopenbox 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);