projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48dcc16
)
- properly indent Examples section in pod generator
author
John Beppu
<beppu@lbox.org>
Thu, 15 Mar 2001 20:49:25 +0000
(20:49 -0000)
committer
John Beppu
<beppu@lbox.org>
Thu, 15 Mar 2001 20:49:25 +0000
(20:49 -0000)
docs/autodocifier.pl
patch
|
blob
|
history
diff --git
a/docs/autodocifier.pl
b/docs/autodocifier.pl
index e967568e1dc961940c8eb985d2fc2f578a27c6c7..7c3aa50bc94c10a28f65a42a5d637e44fe11581f 100755
(executable)
--- a/
docs/autodocifier.pl
+++ b/
docs/autodocifier.pl
@@
-69,8
+69,13
@@
sub pod_for_usage {
# prepare example if one exists
my $example = (defined $usage->{example})
- ?
"Example:\n\n$usage->{example}\n\n"
+ ?
$usage->{example}
: "";
+ $example =
+ "Example:\n\n" .
+ join ("\n",
+ map { " $_" }
+ split("\n", $example)) . "\n\n";
return
"=item I<$name>".
@@
-222,4
+227,4
@@
John BEPPU <beppu@lineo.com>
=cut
-# $Id: autodocifier.pl,v 1.1
5 2001/03/15 18:14:25 andersen
Exp $
+# $Id: autodocifier.pl,v 1.1
6 2001/03/15 20:49:25 beppu
Exp $