Don't strip # enumarations in key/value pairs unless we're dealing
with an I/O system
This commit is contained in:
parent
7b553f5b7a
commit
83051af63b
1 changed files with 7 additions and 2 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue