summaryrefslogtreecommitdiffstats
path: root/release
diff options
context:
space:
mode:
authorsimon <simon@FreeBSD.org>2004-08-27 21:32:24 +0000
committersimon <simon@FreeBSD.org>2004-08-27 21:32:24 +0000
commit60dced8ec2ebe4aaa12c76c7b3a95928551740b8 (patch)
tree75386c2ae7e5801690afa9f2388048385f0ceace /release
parent440914a8bbf4c64c1720b566ce5b3305d19e305d (diff)
downloadFreeBSD-src-60dced8ec2ebe4aaa12c76c7b3a95928551740b8.zip
FreeBSD-src-60dced8ec2ebe4aaa12c76c7b3a95928551740b8.tar.gz
- Improve handling of trailing punctuation characters for the Xr macro.
MFC after: 3 days
Diffstat (limited to 'release')
-rw-r--r--release/doc/share/misc/man2hwnotes.pl10
1 files changed, 7 insertions, 3 deletions
diff --git a/release/doc/share/misc/man2hwnotes.pl b/release/doc/share/misc/man2hwnotes.pl
index feb5b5d..a34a703 100644
--- a/release/doc/share/misc/man2hwnotes.pl
+++ b/release/doc/share/misc/man2hwnotes.pl
@@ -261,12 +261,16 @@ sub parse {
my ($txt, $punct_str) = split_punct_chars($1);
parabuf_addline(\%mdocvars, normalize($txt . $punct_str));
- } elsif (/^Xr (.+) (.+)/) {
+ } elsif (/^Xr ([^ ]+) (.+)$/) {
+ my ($xr_sect, $punct_str) = split_punct_chars($2);
+ my $txt;
+
# We need to check if the manual page exist to avoid
# breaking the doc build just because of a broken
# reference.
- #parabuf_addline(\%mdocvars, "&man.$1.$2;");
- parabuf_addline(\%mdocvars, normalize("$1($2)"));
+ #$txt = "&man.$1.$xr_sect;$punct_str";
+ $txt = "$1($xr_sect)$punct_str";
+ parabuf_addline(\%mdocvars, normalize($txt));
} elsif (/^Dq (.+)$/) {
my ($txt, $punct_str) = split_punct_chars($1);
OpenPOWER on IntegriCloud