diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2024-01-04 02:54:43 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2024-01-04 02:54:43 +0000 |
commit | 771e1f9460d70eb92f07716f88d9caa95f86527a (patch) | |
tree | f020a9fd641d5d455562d893d1f2dddada299631 | |
parent | 7e2d734d4f8cf105c2a0e780277f8adda75200b3 (diff) | |
download | netpbm-mirror-771e1f9460d70eb92f07716f88d9caa95f86527a.tar.gz netpbm-mirror-771e1f9460d70eb92f07716f88d9caa95f86527a.tar.xz netpbm-mirror-771e1f9460d70eb92f07716f88d9caa95f86527a.zip |
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
-rwxr-xr-x | buildtools/makeman | 4 | ||||
-rw-r--r-- | 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)<A NAME *= *"#?([a-zA-Z_][a-zA-Z_0-9.-]+)">(?: )*</A>\s*', ".UN \\1\n", indoc) + indoc = re.sub(r'(?i)<A NAME *= *"#?([a-zA-Z_][a-zA-Z_0-9.-]+)">(?: )*</A>\s*', ".UN \\1\n", indoc) # Strip off the index trailer trailer = re.compile('<HR */*>.*', re.DOTALL | re.IGNORECASE) indoc = re.sub(trailer, "", indoc) @@ -218,7 +218,7 @@ def makeman(name, file, indoc): indoc = re.sub("(?i) *</DD>", "", indoc) # Process unordered lists -- just turn them into .TPs indoc = re.sub("(?i)</?[UO]L *(COMPACT)?>", "", indoc) - indoc = re.sub("(?i) *<LI>", ".IP \(bu\n", indoc) + indoc = re.sub("(?i) *<LI>", r".IP \(bu\n", indoc) indoc = re.sub("(?i) *</LI>", "", indoc) # No-print tags indoc = re.sub("<!--no_print-->.*", "", 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 . |