From fdd2f983f44b38ff8403f32ea0ba15b77d55aaba Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 15 Sep 2006 18:51:40 +0000 Subject: [PATCH] % has to be mapped to %% when producing sst.doc ...otherwise printf does unhelpful things. --- doc/makehelp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.31.1