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:
parent
d72521b377
commit
56192c2346
2 changed files with 19 additions and 3 deletions
|
@ -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>
|
2009-01-27 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
* disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
|
* disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
|
||||||
|
|
17
normal/arg.c
17
normal/arg.c
|
@ -156,10 +156,21 @@ grub_arg_show_help (grub_command_t cmd)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
while (spacing-- > 0)
|
const char *doc = opt->doc;
|
||||||
grub_putchar (' ');
|
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)
|
switch (opt->shortarg)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue