diff options
author | vapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-02-07 00:58:11 +0000 |
---|---|---|
committer | vapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-02-07 00:58:11 +0000 |
commit | 2956e833213350758cdb8fb4e45c61d3f7cd2def (patch) | |
tree | 73a8751aa84fe5bae79629ad2b9d359d8d976c1e /docs | |
parent | 9d9e164beffd347f7b3918082f0f8bbb73c50b78 (diff) | |
download | busybox-w32-2956e833213350758cdb8fb4e45c61d3f7cd2def.tar.gz busybox-w32-2956e833213350758cdb8fb4e45c61d3f7cd2def.tar.bz2 busybox-w32-2956e833213350758cdb8fb4e45c61d3f7cd2def.zip |
Cristian Ionescu-Idbohrn writes:
force enough space padding so that applet names always end up on their own line
git-svn-id: svn://busybox.net/trunk/busybox@13863 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'docs')
-rwxr-xr-x | docs/autodocifier.pl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/autodocifier.pl b/docs/autodocifier.pl index 3a2951237..fa8c4c08a 100755 --- a/docs/autodocifier.pl +++ b/docs/autodocifier.pl | |||
@@ -87,6 +87,13 @@ sub pod_for_usage { | |||
87 | split("\n", $usage->{example})) . "\n\n" | 87 | split("\n", $usage->{example})) . "\n\n" |
88 | : ""; | 88 | : ""; |
89 | 89 | ||
90 | # Pad the name so that the applet name gets a line | ||
91 | # by itself in BusyBox.txt | ||
92 | my $spaces = 10 - length($name); | ||
93 | if ($spaces > 0) { | ||
94 | $name .= " " x $spaces; | ||
95 | } | ||
96 | |||
90 | return | 97 | return |
91 | "=item B<$name>". | 98 | "=item B<$name>". |
92 | "\n\n$name $trivial\n\n". | 99 | "\n\n$name $trivial\n\n". |