Don't use scr.html in CommandTask (#1683)

This commit is contained in:
Florian Märkl 2019-07-21 13:57:57 +02:00 committed by GitHub
parent 239fde50be
commit 39a9266be1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,9 @@ CommandTask::CommandTask(const QString &cmd, ColorMode colorMode, bool outFormat
void CommandTask::runTask() {
TempConfig tempConfig;
tempConfig.set("scr.color", colorMode);
tempConfig.set("scr.html", outFormatHtml);
auto res = Core()->cmdTask(cmd);
if (outFormatHtml) {
res = CutterCore::ansiEscapeToHtml(res);
}
emit finished(res);
}