]> Kevux Git Server - fll/commitdiff
Bugfix: Incorect spacing when combining --unicode with other digit displays.
authorKevin Day <thekevinday@gmail.com>
Thu, 3 Nov 2022 02:45:17 +0000 (21:45 -0500)
committerKevin Day <thekevinday@gmail.com>
Thu, 3 Nov 2022 02:45:17 +0000 (21:45 -0500)
The original calculations are again the 6-digit Unicode "U+1234".
There are also 8-digit Unicodes "U+123456".

level_3/byte_dump/c/private-byte_dump.c

index 2d94f9691dffe7a4ce4253b7dc1f29a4e219d471..156b20621169de2bd3421fd2cedd51d60fd7466e 100644 (file)
@@ -470,7 +470,7 @@ extern "C" {
             fl_print_format(" U+%04_U  ", data->main->output.to.stream, unicode);
           }
           else {
-            fl_print_format(" U+%06_U  ", data->main->output.to.stream, unicode);
+            fl_print_format(" U+%06_U", data->main->output.to.stream, unicode);
           }
         }
         else {
@@ -494,7 +494,7 @@ extern "C" {
         }
         else if (data->mode == byte_dump_mode_duodecimal_e) {
           if (data->main->parameters.array[byte_dump_parameter_unicode_e].result == f_console_result_found_e) {
-            f_print_terminated("   ", data->main->output.to.stream);
+            f_print_terminated("     ", data->main->output.to.stream);
           }
 
           if (invalid[current]) {