about summary refs log tree commit diff
path: root/buildtools
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2021-04-22 01:55:24 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2021-04-22 01:55:24 +0000
commit81e404b06e632b46f6ce8e9838ec5459be54dac6 (patch)
tree503a5a6d4c8b185a77df895e1ade26de89ac8f41 /buildtools
parent04c717a4cccf6cce662138d3286a449770f478eb (diff)
downloadnetpbm-mirror-81e404b06e632b46f6ce8e9838ec5459be54dac6.tar.gz
netpbm-mirror-81e404b06e632b46f6ce8e9838ec5459be54dac6.tar.xz
netpbm-mirror-81e404b06e632b46f6ce8e9838ec5459be54dac6.zip
Handle h5, span
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4091 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'buildtools')
-rwxr-xr-xbuildtools/makeman4
1 files changed, 4 insertions, 0 deletions
diff --git a/buildtools/makeman b/buildtools/makeman
index 21950f72..b954a5d6 100755
--- a/buildtools/makeman
+++ b/buildtools/makeman
@@ -207,6 +207,7 @@ def makeman(name, file, indoc):
     indoc = re.sub('(?i)<H2>([^><]*)</H2>', ".SH \\1", indoc)
     indoc = re.sub('(?i)<H3>([^><]*)</H3>', ".SS \\1", indoc)
     indoc = re.sub('(?i)<H4>([^><]*)</H4>', ".B \\1", indoc)
+    indoc = re.sub('(?i)<H5>([^><]*)</H5>', ".B \\1", indoc)
     #
     # Process definition lists -- just turn them into .TPs
     indoc = re.sub("(?i) *<DL *(COMPACT)?>", "", indoc)
@@ -231,6 +232,9 @@ def makeman(name, file, indoc):
     # Abbreviation - just erase tags
     indoc = re.sub('<abbr [^>]+>', '', indoc)
     indoc = re.sub('</abbr>', '', indoc)
+    # Span - just erase tags
+    indoc = re.sub('(?i)<span [^>]+>', '', indoc)
+    indoc = re.sub('(?i)</span>', '', indoc)
     # Image tags
     indoc = re.sub(' *<img src="([^"]*)" alt="([^"]*)"( *[a-z]*="?[0-9]*"?)*>', ".B \\2\n.IMG -C \\1", indoc)
     # Special characters