diff options
author | simon <simon@FreeBSD.org> | 2004-08-25 23:32:26 +0000 |
---|---|---|
committer | simon <simon@FreeBSD.org> | 2004-08-25 23:32:26 +0000 |
commit | 85c14460dfb25652ffcddb933ef22c1ba78a5c78 (patch) | |
tree | f558a17fca32542e8954624628107261024325c9 /release | |
parent | 4a0e64cbad6c9d3e26805ea10df207683273123f (diff) | |
download | FreeBSD-src-85c14460dfb25652ffcddb933ef22c1ba78a5c78.zip FreeBSD-src-85c14460dfb25652ffcddb933ef22c1ba78a5c78.tar.gz |
Support column lists, by only extracting the first column.
MFC after: 3 days
Diffstat (limited to 'release')
-rw-r--r-- | release/doc/share/misc/man2hwnotes.pl | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/release/doc/share/misc/man2hwnotes.pl b/release/doc/share/misc/man2hwnotes.pl index 95c083e..474ce99 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"; } |