diff options
author | beppu <beppu@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-03-15 20:49:25 +0000 |
---|---|---|
committer | beppu <beppu@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-03-15 20:49:25 +0000 |
commit | 4c09470b1e74e2ddfa6deae30b43329c831a4f2d (patch) | |
tree | 206e9d0b1ace56f50fa37a1585b4fc95e4e6c8e9 /docs | |
parent | e96c649a255f69713b4c73f5bc18172969618ee8 (diff) | |
download | busybox-w32-4c09470b1e74e2ddfa6deae30b43329c831a4f2d.tar.gz busybox-w32-4c09470b1e74e2ddfa6deae30b43329c831a4f2d.tar.bz2 busybox-w32-4c09470b1e74e2ddfa6deae30b43329c831a4f2d.zip |
- properly indent Examples section in pod generator
git-svn-id: svn://busybox.net/trunk/busybox@2104 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'docs')
-rwxr-xr-x | docs/autodocifier.pl | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/docs/autodocifier.pl b/docs/autodocifier.pl index e967568e1..7c3aa50bc 100755 --- a/docs/autodocifier.pl +++ b/docs/autodocifier.pl | |||
@@ -69,8 +69,13 @@ 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 | ? "Example:\n\n$usage->{example}\n\n" | 72 | ? $usage->{example} |
73 | : ""; | 73 | : ""; |
74 | $example = | ||
75 | "Example:\n\n" . | ||
76 | join ("\n", | ||
77 | map { " $_" } | ||
78 | split("\n", $example)) . "\n\n"; | ||
74 | 79 | ||
75 | return | 80 | return |
76 | "=item I<$name>". | 81 | "=item I<$name>". |
@@ -222,4 +227,4 @@ John BEPPU <beppu@lineo.com> | |||
222 | 227 | ||
223 | =cut | 228 | =cut |
224 | 229 | ||
225 | # $Id: autodocifier.pl,v 1.15 2001/03/15 18:14:25 andersen Exp $ | 230 | # $Id: autodocifier.pl,v 1.16 2001/03/15 20:49:25 beppu Exp $ |