From 771e1f9460d70eb92f07716f88d9caa95f86527a Mon Sep 17 00:00:00 2001 From: giraffedata Date: Thu, 4 Jan 2024 02:54:43 +0000 Subject: Use raw strings to avoid warning about invalid escape sequence git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4835 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- buildtools/makeman | 4 ++-- doc/HISTORY | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/buildtools/makeman b/buildtools/makeman index 641ef856..6e4bb52b 100755 --- a/buildtools/makeman +++ b/buildtools/makeman @@ -183,7 +183,7 @@ def makeman(name, file, indoc): indoc = indoc.replace("®", r"\*R") indoc = indoc.replace("©", r"\(co") # Turn anchors into .UN tags - indoc = re.sub('(?i)(?: )*\s*', ".UN \\1\n", indoc) + indoc = re.sub(r'(?i)(?: )*\s*', ".UN \\1\n", indoc) # Strip off the index trailer trailer = re.compile('
.*', re.DOTALL | re.IGNORECASE) indoc = re.sub(trailer, "", indoc) @@ -218,7 +218,7 @@ def makeman(name, file, indoc): indoc = re.sub("(?i) *", "", indoc) # Process unordered lists -- just turn them into .TPs indoc = re.sub("(?i)", "", indoc) - indoc = re.sub("(?i) *
  • ", ".IP \(bu\n", indoc) + indoc = re.sub("(?i) *
  • ", r".IP \(bu\n", indoc) indoc = re.sub("(?i) *
  • ", "", indoc) # No-print tags indoc = re.sub(".*", "", indoc) diff --git a/doc/HISTORY b/doc/HISTORY index e47760a8..4c1e786a 100644 --- a/doc/HISTORY +++ b/doc/HISTORY @@ -6,6 +6,8 @@ CHANGE HISTORY not yet BJH Release 11.06.00 + build: makeman: fix warning about backslashes in strings. + 23.12.28 BJH Release 11.05.00 pnmpad: Add -color, -promote, -extend-edge, -detect-background . -- cgit 1.4.1