2002-04-12 Michael Snyder <msnyder@redhat.com>

* cli/cli-decode.c (help_list): Allow long lines to wrap.
This commit is contained in:
Michael Snyder 2002-04-12 22:44:18 +00:00
parent 20f01a4665
commit de74f71f00
2 changed files with 18 additions and 6 deletions

View file

@ -18,6 +18,8 @@
2002-04-12 Michael Snyder <msnyder@redhat.com> 2002-04-12 Michael Snyder <msnyder@redhat.com>
* cli/cli-decode.c (help_list): Allow long lines to wrap.
* symfile.c: Fix indentation, long lines.
* source.c: White space fix-up. * source.c: White space fix-up.
2002-04-12 Andrew Cagney <cagney@redhat.com> 2002-04-12 Andrew Cagney <cagney@redhat.com>

View file

@ -673,14 +673,24 @@ help_list (struct cmd_list_element *list, char *cmdtype,
help_cmd_list (list, class, cmdtype, (int) class >= 0, stream); help_cmd_list (list, class, cmdtype, (int) class >= 0, stream);
if (class == all_classes) if (class == all_classes)
fprintf_filtered (stream, "\n\ {
Type \"help%s\" followed by a class name for a list of commands in that class.", fprintf_filtered (stream, "\n\
cmdtype1); Type \"help%s\" followed by a class name for a list of commands in ",
cmdtype1);
wrap_here ("");
fprintf_filtered (stream, "that class.");
}
fprintf_filtered (stream, "\n\ fprintf_filtered (stream, "\nType \"help%s\" followed by %scommand name ",
Type \"help%s\" followed by %scommand name for full documentation.\n\
Command name abbreviations are allowed if unambiguous.\n",
cmdtype1, cmdtype2); cmdtype1, cmdtype2);
wrap_here ("");
fputs_filtered ("for ", stream);
wrap_here ("");
fputs_filtered ("full ", stream);
wrap_here ("");
fputs_filtered ("documentation.\n", stream);
fputs_filtered ("Command name abbreviations are allowed if unambiguous.\n",
stream);
} }
static void static void