From cd65a4fb0b30448fd4266a0e2c81c78190c13344 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sun, 18 Apr 2021 17:11:37 +0000 Subject: whitespace git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4088 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- buildtools/makeman | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'buildtools') 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)([^<]+)', r'\\fI\1\\fP', indoc) + indoc = re.sub('(?i)([^<]+)', 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)

([^><]*)

', ".SH \\1", indoc) indoc = re.sub('(?i)

([^><]*)

', ".SS \\1", indoc) indoc = re.sub('(?i)

([^><]*)

', ".B \\1", indoc) - # + # # Process definition lists -- just turn them into .TPs indoc = re.sub("(?i) *
", "", indoc) indoc = re.sub("(?i) *
", "", 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
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) -- cgit 1.4.1