Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 May 2019 18:25:32 +0000 (UTC)
From:      Wolfram Schneider <wosch@FreeBSD.org>
To:        doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org
Subject:   svn commit: r53008 - head/en_US.ISO8859-1/htdocs/cgi
Message-ID:  <201905121825.x4CIPWYb071559@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wosch
Date: Sun May 12 18:25:31 2019
New Revision: 53008
URL: https://svnweb.freebsd.org/changeset/doc/53008

Log:
  implement a blacklist for manpages which does not work well in HTML  output

Modified:
  head/en_US.ISO8859-1/htdocs/cgi/man.cgi

Modified: head/en_US.ISO8859-1/htdocs/cgi/man.cgi
==============================================================================
--- head/en_US.ISO8859-1/htdocs/cgi/man.cgi	Sun May 12 15:01:43 2019	(r53007)
+++ head/en_US.ISO8859-1/htdocs/cgi/man.cgi	Sun May 12 18:25:31 2019	(r53008)
@@ -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' ) );
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905121825.x4CIPWYb071559>