aboutsummaryrefslogtreecommitdiff
path: root/docs/autodocifier.pl
diff options
context:
space:
mode:
authorJohn Beppu <beppu@lbox.org>2001-03-15 21:08:01 +0000
committerJohn Beppu <beppu@lbox.org>2001-03-15 21:08:01 +0000
commite708cb5f9a74d8243ba3a223395466951255badc (patch)
treebab7fbe2ba6c217c838e88df0ef1d51becd71018 /docs/autodocifier.pl
parenta4edd0e946f47dfca4fe0d5ed410743bdcda131c (diff)
downloadbusybox-e708cb5f9a74d8243ba3a223395466951255badc.tar.gz
- 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-xdocs/autodocifier.pl13
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 {
# prepare example if one exists
my $example = (defined $usage->{example})
- ? $usage->{example}
+ ?
+ "Example:\n\n" .
+ join ("\n",
+ map { "\t$_" }
+ split("\n", $usage->{example})) . "\n\n"
: "";
- $example =
- "Example:\n\n" .
- join ("\n",
- map { " $_" }
- split("\n", $example)) . "\n\n";
return
"=item I<$name>".
@@ -227,4 +226,4 @@ John BEPPU <beppu@lineo.com>
=cut
-# $Id: autodocifier.pl,v 1.16 2001/03/15 20:49:25 beppu Exp $
+# $Id: autodocifier.pl,v 1.17 2001/03/15 21:08:01 beppu Exp $