Storage: Escape equal sign in strings. (#119)

This helps interoperability with standard config parser libraries
(such as Python's RawConfigParser).
This commit is contained in:
Peter Johnson
2016-09-29 20:16:32 -07:00
committed by GitHub
parent 1affae956b
commit 53d0789660
2 changed files with 8 additions and 3 deletions

View File

@@ -755,7 +755,7 @@ static void WriteString(std::ostream& os, llvm::StringRef str) {
os << "\\\"";
break;
default:
if (std::isprint(c)) {
if (std::isprint(c) && c != '=') {
os << c;
break;
}