summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pugixml.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp
index 6ca3185..910c082 100644
--- a/src/pugixml.cpp
+++ b/src/pugixml.cpp
@@ -268,7 +268,7 @@ namespace pugi
{
while (*str)
{
- if (opt_wconv && *str == '&') break;
+ if (opt_escape && *str == '&') break;
if ((opt_wnorm || opt_wconv || opt_eol) && chartype_space(*str)) break;
++str;
}