diff options
| author | Ruslan Ermilov <ru@FreeBSD.org> | 2001-08-09 15:12:59 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@FreeBSD.org> | 2001-08-09 15:12:59 +0000 |
| commit | b07badb7bd8f0d03ba06a951f1a59ad6c36f0fe3 (patch) | |
| tree | 214a9384b03e73c1836d0cee6bfccab12e7d0c5a /gnu | |
| parent | 95d6ec368c72f73737a9bc41e5f297d73cdfa0b0 (diff) | |
Notes
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/usr.bin/man/makewhatis/makewhatis.perl | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/gnu/usr.bin/man/makewhatis/makewhatis.perl b/gnu/usr.bin/man/makewhatis/makewhatis.perl index 4a4ab44654643..599220e127fc5 100644 --- a/gnu/usr.bin/man/makewhatis/makewhatis.perl +++ b/gnu/usr.bin/man/makewhatis/makewhatis.perl @@ -370,9 +370,15 @@ sub manual { } else { $list .= '- ' if (!$flag && !/^- /); $flag++; - s/^\.[A-Z][a-z][ \t]*//; - s/[ \t]+$//; - $list .= $_; + if (/^\.Xr/) { + split; + $list .= @_[1]; + $list .= "(@_[2])" if @_[2]; + } else { + s/^\.[A-Z][a-z][ \t]*//; + s/[ \t]+$//; + $list .= $_; + } $list .= ' '; } } |
