Escape print-hex output.

This commit is contained in:
2025-10-02 03:14:04 +01:00
parent 4ede6780b2
commit a6b6d5d729

View File

@@ -191,9 +191,9 @@ sealed class PrintHexCommand : Command<PrintHexCommand.Settings>
if(errno == ErrorNumber.NoError)
{
AaruLogging.WriteLine(Markup.Escape(PrintHex.ByteArrayToHexArrayString(sector,
settings.Width,
true)));
AaruLogging.WriteLine(Markup.Escape(PrintHex.ByteArrayToHexArrayString(sector, settings.Width, true)
.Replace("{", "{{")
.Replace("}", "}}")));
}
else
AaruLogging.Error(string.Format(UI.Error_0_reading_sector_1, errno, settings.Start + i));