implement a blacklist for manpages which does not work well in HTML output
This commit is contained in:
parent
d4a8d01bea
commit
5712cd7e23
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=53008
1 changed files with 7 additions and 1 deletions
|
@ -732,6 +732,10 @@ $manPathDefault = 'FreeBSD 12.0-RELEASE and Ports';
|
|||
'MACH 2.5/i386', "$manLocalDir/MACH-2.5-i386",
|
||||
);
|
||||
|
||||
my @no_html_output = (
|
||||
'IRIX-6.5.30'
|
||||
);
|
||||
|
||||
my @no_pdf_output = (
|
||||
'386BSD 0.0',
|
||||
'386BSD 0.1',
|
||||
|
@ -775,6 +779,7 @@ my @no_pdf_output = (
|
|||
);
|
||||
|
||||
my %no_pdf_output = map { $_ => 1 } @no_pdf_output;
|
||||
my %no_html_output = map { $_ => 1 } @no_html_output;
|
||||
|
||||
my %valid_arch = map { $_ => 1 }
|
||||
qw/aarch64 acorn26 acorn32 algor alpha amd64 amiga arc arm arm26 arm32 arm64 armish atari aviion bebox cats cesfic cobalt dreamcast evbarm evbmips evbppc evbsh3 evbsh5 hp300 hp700 hpcarm hpcmips hpcsh hppa hppa64 i386 ibmnws landisk loongson luna68k luna88k mac68k macppc mipsco mmeye mvme68k mvme88k mvmeppc netwinder news68k newsmips next68k ofppc palm pc532 pegasos playstation2 pmax pmppc powerpc prep sandpoint sbmips sgi sgimips shark socppc sparc sparc64 sun2 sun3 sun3x tahoe vax walnut wgrisc x68k zaurus/;
|
||||
|
@ -1823,7 +1828,8 @@ ETX
|
|||
<select name="format">
|
||||
ETX
|
||||
|
||||
my @format = ('html');
|
||||
my @format = ();
|
||||
push( @format, ( 'html' ) ) if !$no_html_output{$manpath};
|
||||
push( @format, ( 'pdf' ) ) if !$no_pdf_output{$manpath};
|
||||
push( @format, ( 'ascii' ) );
|
||||
|
||||
|
|
Loading…
Reference in a new issue