if (lexrc.next()) {
flags = lexrc.getString();
}
- if (command.empty() || command == "none") {
+ if (command.empty()
+ || token(command, ' ', 0) == "none") {
converters.erase(from, to);
} else {
converters.add(from, to, command, flags);
}
if (lexrc.next()) {
command = lexrc.getString();
+ if (token(command, ' ', 0) == "none")
+ command.erase();
}
formats.setViewer(format, command);
break;