Don't strip # enumarations in key/value pairs unless we're dealing

with an I/O system
This commit is contained in:
Marco Cawthorne 2021-09-30 21:51:22 +02:00
parent 7b553f5b7a
commit 83051af63b
Signed by: eukara
GPG key ID: C196CD8BA993248A

View file

@ -50,8 +50,13 @@ public:
void visit(const char *key, const char *value) void visit(const char *key, const char *value)
{ {
/* cut anything after # including the symbol itself */ /* cut anything after # including the symbol itself */
StringTokeniser st(key, "#"); if (!strncmp(key, "On", 2)) {
m_writer.writeString(st.getToken()); StringTokeniser st(key, "#");
m_writer.writeString(st.getToken());
} else {
m_writer.writeString(key);
}
m_writer.writeString(value); m_writer.writeString(value);
m_writer.nextLine(); m_writer.nextLine();
} }