From bb9db0b129f15bdaf7961d87f9224eb222ab2a53 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sat, 14 Jun 2014 18:04:19 +0200 Subject: [PATCH] + encode CR and LF for XML --- src/App/Property.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/App/Property.cpp b/src/App/Property.cpp index 0fd2fc1bb3..3b750ff20b 100644 --- a/src/App/Property.cpp +++ b/src/App/Property.cpp @@ -126,8 +126,10 @@ std::string Property::encodeAttribute(const std::string& str) const tmp += "&"; else if (*it == '>') tmp += ">"; + else if (*it == '\r') + tmp += " "; else if (*it == '\n') - tmp += " "; + tmp += " "; else tmp += *it; }