From 8fd83a19a0288e5be5fb01fcda0d531d281b05fd Mon Sep 17 00:00:00 2001 From: giraffedata Date: Fri, 23 Apr 2021 02:32:59 +0000 Subject: handle sub, pre end tag not on line by itself git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4093 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- buildtools/makeman | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'buildtools') diff --git a/buildtools/makeman b/buildtools/makeman index b954a5d6..920c200c 100755 --- a/buildtools/makeman +++ b/buildtools/makeman @@ -117,7 +117,7 @@ def makeman(name, file, indoc): indoc = ('.TH "%s" %d "%s" "%s"\n' % (title,section,date,source)) + indoc # Literal layout indoc = re.sub("(?i)\n *
", "\n.nf", indoc)
-    indoc = re.sub("(?i)\n *
", "\n.fi", indoc) + indoc = re.sub("(?i) *\n", "\n.fi\n", indoc) indoc = re.sub("(?i)\n *
", "\n.RS", indoc) indoc = re.sub("(?i)\n *
", "\n.RE", indoc) # Highlight processing @@ -232,6 +232,9 @@ def makeman(name, file, indoc): # Abbreviation - just erase tags indoc = re.sub(']+>', '', indoc) indoc = re.sub('', '', indoc) + # Subscript - just erase tags + indoc = re.sub('(?i)]+>', '', indoc) + indoc = re.sub('(?i)', '', indoc) # Span - just erase tags indoc = re.sub('(?i)]+>', '', indoc) indoc = re.sub('(?i)', '', indoc) -- cgit 1.4.1