aboutsummaryrefslogtreecommitdiff
path: root/release/doc/share
diff options
context:
space:
mode:
authorSimon L. B. Nielsen <simon@FreeBSD.org>2004-08-25 23:32:26 +0000
committerSimon L. B. Nielsen <simon@FreeBSD.org>2004-08-25 23:32:26 +0000
commita733008573ed27639cbc6ffa065b042fba5b5aaf (patch)
treef558a17fca32542e8954624628107261024325c9 /release/doc/share
parent4bea5fa5444e368a387aebf3148688776124d7c3 (diff)
downloadsrc-a733008573ed27639cbc6ffa065b042fba5b5aaf.tar.gz
src-a733008573ed27639cbc6ffa065b042fba5b5aaf.zip
Support column lists, by only extracting the first column.
MFC after: 3 days
Notes
Notes: svn path=/head/; revision=134318
Diffstat (limited to 'release/doc/share')
-rw-r--r--release/doc/share/misc/man2hwnotes.pl11
1 files changed, 10 insertions, 1 deletions
diff --git a/release/doc/share/misc/man2hwnotes.pl b/release/doc/share/misc/man2hwnotes.pl
index 95c083e6afbf..474ce99428d4 100644
--- a/release/doc/share/misc/man2hwnotes.pl
+++ b/release/doc/share/misc/man2hwnotes.pl
@@ -199,11 +199,18 @@ sub parse {
$cur_mansection = $2;
} elsif (/^It ?(.*)$/) {
+ my $txt = $1;
+
# Flush last item
if ($mdocvars{parabuf} ne "") {
add_listitem(\%mdocvars);
}
- parabuf_addline(\%mdocvars, normalize($1));
+ # Only extract the first column of column lists.
+ if ($mdocvars{listtype} eq "column") {
+ $txt =~ s/ Ta /\t/g;
+ $txt =~ s/([^\t]+)\t.*/$1/;
+ }
+ parabuf_addline(\%mdocvars, normalize($txt));
} elsif (/^Bl/) {
$mdocvars{isin_list} = 1;
flush_out(\%mdocvars);
@@ -217,6 +224,8 @@ sub parse {
}
} elsif (/-bullet/) {
$mdocvars{listtype} = "bullet";
+ } elsif (/-column/) {
+ $mdocvars{listtype} = "column";
} else {
$mdocvars{listtype} = "unknown";
}