1
0
mirror of synced 2025-01-19 01:24:15 +01:00

fix: Copy-As python array having a semicolon at the end

This commit is contained in:
WerWolv 2022-09-18 15:05:56 +02:00
parent ddf1e8a179
commit 59a04e6dbf

View File

@ -64,7 +64,7 @@ namespace hex::plugin::builtin {
});
ContentRegistry::DataFormatter::add("hex.builtin.view.hex_editor.copy.python", [](prv::Provider *provider, u64 offset, size_t size) {
return formatLanguageArray(provider, offset, size, "data = bytes([", "0x{0:02X}, ", "]);");
return formatLanguageArray(provider, offset, size, "data = bytes([", "0x{0:02X}, ", "])");
});
ContentRegistry::DataFormatter::add("hex.builtin.view.hex_editor.copy.js", [](prv::Provider *provider, u64 offset, size_t size) {