diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2015-06-28 02:10:12 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2015-06-28 02:10:12 +0000 |
commit | 9eb96613ada244d5d2314838f070acd4f4762872 (patch) | |
tree | 62d7b839abb40c84e60b129b52e1d8628de88f88 /buildtools | |
parent | ea41495cab211a7d67acea6a2dd72270755ab82c (diff) | |
download | netpbm-mirror-9eb96613ada244d5d2314838f070acd4f4762872.tar.gz netpbm-mirror-9eb96613ada244d5d2314838f070acd4f4762872.tar.xz netpbm-mirror-9eb96613ada244d5d2314838f070acd4f4762872.zip |
Remove all DOCTYPE
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2566 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'buildtools')
-rwxr-xr-x | buildtools/makeman | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/buildtools/makeman b/buildtools/makeman index bcc65cff..9b2653bf 100755 --- a/buildtools/makeman +++ b/buildtools/makeman @@ -51,9 +51,7 @@ def makeman(name, file, indoc): # Protect escapes before we try generating font changes. indoc = indoc.replace("\\", r"\e") # Header-bashing - indoc = indoc.replace('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "DTD/xhtml11.dtd">', "") - indoc = indoc.replace('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">', "") - indoc = indoc.replace('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">\n',"") + indoc = re.sub('(?i)<!DOCTYPE html[^>]*>', "", indoc) indoc = indoc.replace('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">', "") indoc = indoc.replace('<meta http-equiv="Content-Type" content="text/html; charset=us-ascii"/>', "") indoc = indoc.replace('<?xml version="1.1" encoding="iso-8859-1" ?>\n',"") |