From 9fa82b15f53f0f20363f50b5b1adf1a762ed96d6 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Fri, 4 Jun 2010 18:50:26 +0000 Subject: Optimized attribute parsing; behavior of parse_wconv changed, it now assumes that parse_eol is set git-svn-id: http://pugixml.googlecode.com/svn/trunk@503 99668b35-9821-0410-8761-19e4c4f06640 --- src/pugixml.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/pugixml.hpp') diff --git a/src/pugixml.hpp b/src/pugixml.hpp index 6f4cece..398dd77 100644 --- a/src/pugixml.hpp +++ b/src/pugixml.hpp @@ -235,17 +235,18 @@ namespace pugi #if !defined(__INTEL_COMPILER) || __INTEL_COMPILER > 800 PUGIXML_DEPRECATED #endif - const unsigned int parse_wnorm_attribute = 0x0040; + const unsigned int parse_wnorm_attribute = 0x0080; /** * This flag determines if attribute value normalization should be performed for all attributes. * This means, that whitespace characters (new line, tab and space) are replaced with space (' '). * Note, that the actions performed while this flag is on are also performed if parse_wnorm_attribute * is on, so this flag has no effect if parse_wnorm_attribute flag is set. + * New line characters are always treated as if parse_eol is set, i.e. \r\n is converted to single space. * * This flag is on by default. */ - const unsigned int parse_wconv_attribute = 0x0080; + const unsigned int parse_wconv_attribute = 0x0040; /** * This flag determines if XML document declaration (this node has the form of in XML) -- cgit v1.2.3