]> 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 03:26:31 +0000 (22:26 -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 ae910e28fb5136aeeca070a744fae3c962e43d83..186bb735ed60347325228881420b250259d864ca 100644 (file)
@@ -470,7 +470,7 @@ extern "C" {
             fl_print_format(" U+%04_U  ", data->main->output.to, unicode);
           }
           else {
-            fl_print_format(" U+%06_U  ", data->main->output.to, unicode);
+            fl_print_format(" U+%06_U", data->main->output.to, 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);
+            f_print_terminated("     ", data->main->output.to);
           }
 
           if (invalid[current]) {