aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorGravatar Mike Frysinger <vapier@gentoo.org>2006-02-07 00:58:11 +0000
committerGravatar Mike Frysinger <vapier@gentoo.org>2006-02-07 00:58:11 +0000
commit27a74e8017ff5d21d728fe41ef4bf5083a0ad5c8 (patch)
tree73a8751aa84fe5bae79629ad2b9d359d8d976c1e /docs
parent0380166916de8e54674c8ce7b60287b73107e6e6 (diff)
downloadbusybox-27a74e8017ff5d21d728fe41ef4bf5083a0ad5c8.tar.gz
busybox-27a74e8017ff5d21d728fe41ef4bf5083a0ad5c8.tar.bz2
Cristian Ionescu-Idbohrn writes:
force enough space padding so that applet names always end up on their own line
Diffstat (limited to 'docs')
-rwxr-xr-xdocs/autodocifier.pl7
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 {
split("\n", $usage->{example})) . "\n\n"
: "";
+ # Pad the name so that the applet name gets a line
+ # by itself in BusyBox.txt
+ my $spaces = 10 - length($name);
+ if ($spaces > 0) {
+ $name .= " " x $spaces;
+ }
+
return
"=item B<$name>".
"\n\n$name $trivial\n\n".