diff options
author | John Beppu <beppu@lbox.org> | 2001-03-15 21:08:01 +0000 |
---|---|---|
committer | John Beppu <beppu@lbox.org> | 2001-03-15 21:08:01 +0000 |
commit | e708cb5f9a74d8243ba3a223395466951255badc (patch) | |
tree | bab7fbe2ba6c217c838e88df0ef1d51becd71018 /docs/autodocifier.pl | |
parent | a4edd0e946f47dfca4fe0d5ed410743bdcda131c (diff) | |
download | busybox-w32-e708cb5f9a74d8243ba3a223395466951255badc.tar.gz busybox-w32-e708cb5f9a74d8243ba3a223395466951255badc.tar.bz2 busybox-w32-e708cb5f9a74d8243ba3a223395466951255badc.zip |
- generated middle section of busybox.pod w/ autodocifier.pl
- updated autodocifier.pl to use tab to indent example section
Diffstat (limited to 'docs/autodocifier.pl')
-rwxr-xr-x | docs/autodocifier.pl | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/docs/autodocifier.pl b/docs/autodocifier.pl index 7c3aa50bc..567b10310 100755 --- a/docs/autodocifier.pl +++ b/docs/autodocifier.pl | |||
@@ -69,13 +69,12 @@ sub pod_for_usage { | |||
69 | 69 | ||
70 | # prepare example if one exists | 70 | # prepare example if one exists |
71 | my $example = (defined $usage->{example}) | 71 | my $example = (defined $usage->{example}) |
72 | ? $usage->{example} | 72 | ? |
73 | "Example:\n\n" . | ||
74 | join ("\n", | ||
75 | map { "\t$_" } | ||
76 | split("\n", $usage->{example})) . "\n\n" | ||
73 | : ""; | 77 | : ""; |
74 | $example = | ||
75 | "Example:\n\n" . | ||
76 | join ("\n", | ||
77 | map { " $_" } | ||
78 | split("\n", $example)) . "\n\n"; | ||
79 | 78 | ||
80 | return | 79 | return |
81 | "=item I<$name>". | 80 | "=item I<$name>". |
@@ -227,4 +226,4 @@ John BEPPU <beppu@lineo.com> | |||
227 | 226 | ||
228 | =cut | 227 | =cut |
229 | 228 | ||
230 | # $Id: autodocifier.pl,v 1.16 2001/03/15 20:49:25 beppu Exp $ | 229 | # $Id: autodocifier.pl,v 1.17 2001/03/15 21:08:01 beppu Exp $ |