diff --git a/DiscordChatExporter.Cli/Commands/Base/ExportCommandBase.cs b/DiscordChatExporter.Cli/Commands/Base/ExportCommandBase.cs index eb28312..6cc6c4c 100644 --- a/DiscordChatExporter.Cli/Commands/Base/ExportCommandBase.cs +++ b/DiscordChatExporter.Cli/Commands/Base/ExportCommandBase.cs @@ -14,7 +14,6 @@ using DiscordChatExporter.Core.Exceptions; using DiscordChatExporter.Core.Exporting; using DiscordChatExporter.Core.Exporting.Partitioning; using DiscordChatExporter.Core.Utils.Extensions; -using Spectre.Console; using Tyrrrz.Extensions; namespace DiscordChatExporter.Cli.Commands.Base @@ -65,7 +64,7 @@ namespace DiscordChatExporter.Cli.Commands.Base // Export try { - await progressContext.StartTaskAsync(Markup.Escape($"{channel.Category} / {channel.Name}"), async progress => + await progressContext.StartTaskAsync($"{channel.Category} / {channel.Name}", async progress => { var guild = await Discord.GetGuildAsync(channel.GuildId); diff --git a/DiscordChatExporter.Cli/Utils/Extensions/ConsoleExtensions.cs b/DiscordChatExporter.Cli/Utils/Extensions/ConsoleExtensions.cs index c834650..c19e45c 100644 --- a/DiscordChatExporter.Cli/Utils/Extensions/ConsoleExtensions.cs +++ b/DiscordChatExporter.Cli/Utils/Extensions/ConsoleExtensions.cs @@ -33,7 +33,11 @@ namespace DiscordChatExporter.Cli.Utils.Extensions string description, Func performOperationAsync) { - var progressTask = progressContext.AddTask(description, new ProgressTaskSettings {MaxValue = 1}); + var progressTask = progressContext.AddTask( + // Don't recognize random square brackets as style tags + Markup.Escape(description), + new ProgressTaskSettings {MaxValue = 1} + ); try {