From eeffc1d52b0c31c49595b95f07f186dc77b8d191 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Wed, 1 May 2024 22:55:23 +0200 Subject: [PATCH] man-generator: code reformating --- tools/man-generator.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/tools/man-generator.c b/tools/man-generator.c index d602bb22f..3bd0380a4 100644 --- a/tools/man-generator.c +++ b/tools/man-generator.c @@ -1028,10 +1028,7 @@ static void _print_man_all_options_list(const struct command_name *cname) if (!val_names[val_enum].fn) { /* takes no arg */ } else if (!val_names[val_enum].usage) { - printf(" "); - printf("\\fI"); - printf("%s", val_names[val_enum].name); - printf("\\fP"); + printf(" \\fI%s\\fP", val_names[val_enum].name); } else { printf(" "); _print_val_man(cname, opt_enum, val_enum); @@ -1091,10 +1088,7 @@ static void _print_man_all_options_desc(const struct command_name *cname) if (!val_names[val_enum].fn) { /* takes no arg */ } else if (!val_names[val_enum].usage) { - printf(" "); - printf("\\fI"); - printf("%s", val_names[val_enum].name); - printf("\\fP"); + printf(" \\fI%s\\fP", val_names[val_enum].name); } else { printf(" "); _print_val_man(cname, opt_enum, val_enum);