From 0e03ac8e5b72a28d4d068b1f4f8b95b6a3fe08d7 Mon Sep 17 00:00:00 2001 From: Myk Taylor Date: Mon, 23 Jan 2023 23:50:08 -0800 Subject: [PATCH] don't use tabs in enable output so they display nicely in gui/launcher --- library/Core.cpp | 2 +- library/lua/script-manager.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/Core.cpp b/library/Core.cpp index bdd38799f..98582d8cd 100644 --- a/library/Core.cpp +++ b/library/Core.cpp @@ -804,7 +804,7 @@ command_result Core::runCommand(color_ostream &con, const std::string &first_, v if (!plug->can_be_enabled()) continue; con.print( - "%20s\t%-3s%s\n", + "%21s %-3s%s\n", (plug->getName()+":").c_str(), plug->is_enabled() ? "on" : "off", plug->can_set_enabled() ? "" : " (controlled internally)" diff --git a/library/lua/script-manager.lua b/library/lua/script-manager.lua index 008e9443e..c1b8c80d5 100644 --- a/library/lua/script-manager.lua +++ b/library/lua/script-manager.lua @@ -49,7 +49,7 @@ function list() -- just been added reload() for name,fn in pairs(enabled_map) do - print(('%20s\t%-3s'):format(name..':', fn() and 'on' or 'off')) + print(('%21s %-3s'):format(name..':', fn() and 'on' or 'off')) end end