2009-01-30 Christian Franke <franke@computer.org>

* normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
	in option help text.
This commit is contained in:
chrfranke 2009-01-30 21:10:17 +00:00
parent d72521b377
commit 56192c2346
2 changed files with 19 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2009-01-30 Christian Franke <franke@computer.org>
* normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
in option help text.
2009-01-27 Pavel Roskin <proski@gnu.org>
* disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.

View File

@ -156,10 +156,21 @@ grub_arg_show_help (grub_command_t cmd)
}
}
while (spacing-- > 0)
grub_putchar (' ');
const char *doc = opt->doc;
for (;;)
{
while (spacing-- > 0)
grub_putchar (' ');
grub_printf ("%s\n", opt->doc);
while (*doc && *doc != '\n')
grub_putchar (*doc++);
grub_putchar ('\n');
if (! *doc)
break;
doc++;
spacing = 4 + 20;
}
switch (opt->shortarg)
{