diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2021-04-18 17:11:37 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2021-04-18 17:11:37 +0000 |
commit | cd65a4fb0b30448fd4266a0e2c81c78190c13344 (patch) | |
tree | af13dd716af722efaecc0f3cf30b31f8d471e5d3 | |
parent | e5751cbf159ac465c80e7071e88b455e4cf8a1c7 (diff) | |
download | netpbm-mirror-cd65a4fb0b30448fd4266a0e2c81c78190c13344.tar.gz netpbm-mirror-cd65a4fb0b30448fd4266a0e2c81c78190c13344.tar.xz netpbm-mirror-cd65a4fb0b30448fd4266a0e2c81c78190c13344.zip |
whitespace
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4088 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rwxr-xr-x | buildtools/makeman | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/buildtools/makeman b/buildtools/makeman index 196dbd0a..cd351066 100755 --- a/buildtools/makeman +++ b/buildtools/makeman @@ -2,7 +2,7 @@ # # makeman -- compile netpbm's stereotyped HTML to troff markup # -# This approach works because we control the entire document universe +# This approach works because we control the entire document universe # this is going to convert and can reinforce useful stereotypes. # # The output of this tool uses cliches parseable by doclifter, @@ -29,7 +29,7 @@ # Version 1.1, February 11 2016 # # Added ability to process — − -# Added footer message to clarify original source. +# Added footer message to clarify original source. # import os, sys, re @@ -151,7 +151,7 @@ def makeman(name, file, indoc): indoc = "\n".join(lines) indoc = re.sub(r"\s*\.sp", "\n.sp", indoc) # Format email addresses as italic - indoc = re.sub('(?i)<A[ \n]+HREF="mailto:[^>]+">([^<]+)</A>', r'\\fI\1\\fP', indoc) + indoc = re.sub('(?i)<A[ \n]+HREF="mailto:[^>]+">([^<]+)</A>', r'\\fI\1\\fP', indoc) # Format manual cross-references def xrefmatch(match): xrefto = match.group(2) @@ -200,7 +200,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) - # + # # Process definition lists -- just turn them into .TPs indoc = re.sub("(?i) *<DL *(COMPACT)?>", "", indoc) indoc = re.sub("(?i) *</DL>", "", indoc) @@ -282,7 +282,7 @@ def main(args, mainout=sys.stdout, mainerr=sys.stderr): # First pass: gather locations for cross-references: sectmap = {} for file in arguments: - try: + try: infp = open(os.path.join(dirprefix, file)) except: sys.stderr.write("makeman: can't open %s\n" % file) @@ -313,7 +313,7 @@ def main(args, mainout=sys.stdout, mainerr=sys.stderr): LiftException("%s has two <HR> tags!" % file) # Second pass: do formatting for file in arguments: - try: + try: infp = open(os.path.join(dirprefix, file)) except: sys.stderr.write("makeman: can't open %s\n" % file) |