#757338 buggy magic: mistakes HTML as LaTeX

Package:
file
Source:
file
Description:
Recognize the type of data in a file using "magic" numbers
Submitter:
LB
Date:
2014-08-07 09:12:19 UTC
Severity:
normal
#757338#5
Date:
2014-08-07 09:11:41 UTC
From:
To:
Dear Maintainer,

the problem occurs with many files from Debian packages:

/usr/share/doc/doxygen/html/faq.html: LaTeX document, ASCII text, with very long lines

/usr/share/doc/latex2html/html/Enode13_ct.html:   LaTeX document, ASCII text
/usr/share/doc/latex2html/html/Enode15_ct.html:   LaTeX document, ASCII text
/usr/share/doc/latex2html/html/Enode7_ct.html:    LaTeX document, ASCII text
/usr/share/doc/latex2html/html/Enode9_ct.html:    LaTeX document, ASCII text
/usr/share/doc/latex2html/html/Hnode10_ct.html:   LaTeX document, ASCII text
/usr/share/doc/latex2html/html/Hnode12_ct.html:   LaTeX 2e document, ASCII text
/usr/share/doc/latex2html/html/Hnode4_ct.html:    LaTeX document, ASCII text

/usr/share/doc/texlive-doc/etex/base/etex_ref.html: LaTeX document, ASCII text
/usr/share/doc/texlive-doc/latex/bosisio/envmath.html: LaTeX document, ASCII text
/usr/share/doc/texlive-doc/latex/exam-n/release-notes.html: LaTeX document, UTF-8 Unicode text
/usr/share/doc/texlive-doc/latex/tablor/tablor.html: LaTeX document, ASCII text, with very long lines

/usr/share/doc/source-highlight/test.java.tex.html: LaTeX 2e document, ASCII text, with very long lines

/usr/share/doc/xfig/html/latex_and_xfig.html: LaTeX document, ASCII text, with CRLF line terminators
/usr/share/doc/xfig/html/japanese/latex_and_xfig.html: LaTeX document, ISO-8859 text, with CRLF line terminators

[and probably many others...]

whereas those files are HTML with some LaTeX inside.