automatic escaping for strings

* parsed words starting with " will handle richtext
* all strings in saved.cfg that need escaping are escaped
* new command "escape" to escape a string manually

DOCREF escape
This commit is contained in:
ac-stef
2015-02-23 18:56:32 +01:00
parent 1956f0acc0
commit d585550315
3 changed files with 76 additions and 31 deletions
+1 -1
View File
@@ -606,7 +606,7 @@ void writebinds(stream *f)
loopv(keyms)
{
keym *km = &keyms[i];
loopj(3) if(*km->actions[j]) f->printf("%s \"%s\" [%s]\n", keycmd(j), km->name, km->actions[j]);
loopj(3) if(*km->actions[j]) f->printf("%s \"%s\" %s\n", keycmd(j), km->name, escapestring(km->actions[j]));
}
}