mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user