From: Eric S. Raymond Date: Fri, 15 Sep 2006 18:51:40 +0000 (+0000) Subject: % has to be mapped to %% when producing sst.doc X-Git-Tag: 2.0~259 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=fdd2f983f44b38ff8403f32ea0ba15b77d55aaba;p=super-star-trek.git % has to be mapped to %% when producing sst.doc ...otherwise printf does unhelpful things. --- diff --git a/doc/makehelp.py b/doc/makehelp.py index 0a171f2..5ff72f4 100755 --- a/doc/makehelp.py +++ b/doc/makehelp.py @@ -34,7 +34,7 @@ while True: if line.find(endmarker2) > -1: state = 0 if state: - savetext += line + savetext += line.replace("%", "%%") # Remove the section titles savetext = re.sub("\n+.*\n*Mnemonic:\\s*", "\n********\n%% ", savetext)