diff options
author | John Beppu | 2001-03-15 20:49:25 +0000 |
---|---|---|
committer | John Beppu | 2001-03-15 20:49:25 +0000 |
commit | af9e533a5419084ec9260c3c55cd2799122cc7e1 (patch) | |
tree | 206e9d0b1ace56f50fa37a1585b4fc95e4e6c8e9 /docs | |
parent | 48dcc16548bb35837fa80a3f3d7437cf9e850d9f (diff) | |
download | busybox-af9e533a5419084ec9260c3c55cd2799122cc7e1.zip busybox-af9e533a5419084ec9260c3c55cd2799122cc7e1.tar.gz |
- properly indent Examples section in pod generator
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 e967568..7c3aa50 100755 --- 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.15 2001/03/15 18:14:25 andersen Exp $ +# $Id: autodocifier.pl,v 1.16 2001/03/15 20:49:25 beppu Exp $ |