From f4273d8320aec35291814d1b74a53cdbef6e1b43 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Tue, 25 Jul 2023 23:26:15 -0500 Subject: [PATCH] Bugfix: Fix new lines when printing help. I noticed a couple of programs are missing the correct new lines when printing the help. --- level_3/byte_dump/c/main/print/message.c | 4 +--- level_3/fake/c/main/print/message.c | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/level_3/byte_dump/c/main/print/message.c b/level_3/byte_dump/c/main/print/message.c index 5e44bce..58187c5 100644 --- a/level_3/byte_dump/c/main/print/message.c +++ b/level_3/byte_dump/c/main/print/message.c @@ -39,9 +39,7 @@ extern "C" { fll_program_print_help_option(print, byte_dump_short_wide_s, byte_dump_long_wide_s, f_console_symbol_short_normal_s, f_console_symbol_long_normal_s, " Use wide display, resulting in 2*width allowing for space for wide characters in the text columns."); fll_program_print_help_option(print, byte_dump_short_width_s, byte_dump_long_width_s, f_console_symbol_short_normal_s, f_console_symbol_long_normal_s, " Set number of columns of Bytes to display."); - f_print_dynamic_raw(f_string_eol_s, print->to); - - fl_print_format(" %[Special Options:%] ", print->to, print->set->important, print->set->important); + fl_print_format("%r %[Special Options:%] %r", print->to, f_string_eol_s, print->set->important, print->set->important, f_string_eol_s); fll_program_print_help_option_long(print, byte_dump_long_normal_s, f_console_symbol_long_normal_s, " Display UTF-8 symbols for ASCII control codes."); fll_program_print_help_option_long(print, byte_dump_long_simple_s, f_console_symbol_long_normal_s, " Display spaces for ASCII control codes."); diff --git a/level_3/fake/c/main/print/message.c b/level_3/fake/c/main/print/message.c index c511c01..6a645f6 100644 --- a/level_3/fake/c/main/print/message.c +++ b/level_3/fake/c/main/print/message.c @@ -99,7 +99,7 @@ extern "C" { fll_program_print_help_option(print, fake_short_sources_s, fake_long_sources_s, f_console_symbol_short_normal_s, f_console_symbol_long_normal_s, " Specify a custom path to the source files."); fll_program_print_help_option(print, fake_short_work_s, fake_long_work_s, f_console_symbol_short_normal_s, f_console_symbol_long_normal_s, " Use includes/libraries/programs from this directory instead of system."); - fl_print_format("%r%r %[Special Options:%]%r", print->to, f_string_eol_s, f_string_eol_s, print->set->important, print->set->important, f_string_eol_s); + fl_print_format("%r %[Special Options:%]%r", print->to, f_string_eol_s, print->set->important, print->set->important, f_string_eol_s); fll_program_print_help_option_long(print, fake_long_documents_disabled_s, f_console_symbol_long_normal_s, " Forcibly do not build documents files."); fll_program_print_help_option_long(print, fake_long_documents_enabled_s, f_console_symbol_long_normal_s, " Forcibly do build documents files."); @@ -108,7 +108,7 @@ extern "C" { fll_program_print_help_option_long(print, fake_long_static_disabled_s, f_console_symbol_long_normal_s, "Forcibly do not build static files."); fll_program_print_help_option_long(print, fake_long_static_enabled_s, f_console_symbol_long_normal_s, " Forcibly do build static files."); - fl_print_format("%r %[Operations:%] ", print->to, f_string_eol_s, print->set->important, print->set->important); + fl_print_format("%r %[Operations:%] %r", print->to, f_string_eol_s, print->set->important, print->set->important, f_string_eol_s); fll_program_print_help_option_other(print, fake_other_operation_build_s, " Build or compile the code based on build settings file."); fll_program_print_help_option_other(print, fake_other_operation_clean_s, " Delete all build files."); -- 1.8.3.1