[Lxml-checkins] r35617 - lxml/branch/nscleanup/src/lxml
scoder at codespeak.net
scoder at codespeak.net
Tue Dec 12 10:45:24 CET 2006
Author: scoder
Date: Tue Dec 12 10:45:21 2006
New Revision: 35617
Modified:
lxml/branch/nscleanup/src/lxml/parser.pxi
Log:
enable COMPACT parsing
Modified: lxml/branch/nscleanup/src/lxml/parser.pxi
==============================================================================
--- lxml/branch/nscleanup/src/lxml/parser.pxi (original)
+++ lxml/branch/nscleanup/src/lxml/parser.pxi Tue Dec 12 10:45:21 2006
@@ -614,7 +614,8 @@
cdef int _XML_DEFAULT_PARSE_OPTIONS
_XML_DEFAULT_PARSE_OPTIONS = (
xmlparser.XML_PARSE_NOENT |
- xmlparser.XML_PARSE_NOCDATA
+ xmlparser.XML_PARSE_NOCDATA |
+ xmlparser.XML_PARSE_COMPACT
)
cdef class XMLParser(_BaseParser):
@@ -754,7 +755,8 @@
############################################################
cdef int _HTML_DEFAULT_PARSE_OPTIONS
-_HTML_DEFAULT_PARSE_OPTIONS = 0
+_HTML_DEFAULT_PARSE_OPTIONS = \
+ htmlparser.HTML_PARSE_COMPACT
cdef class HTMLParser(_BaseParser):
"""The HTML parser. This parser allows reading HTML into a normal XML
More information about the lxml-checkins
mailing list