diff options
-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 $ |