about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xbuildtools/makeman4
-rw-r--r--doc/HISTORY2
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.-]+)">(?:&nbsp;)*</A>\s*', ".UN \\1\n", indoc)
+    indoc = re.sub(r'(?i)<A NAME *= *"#?([a-zA-Z_][a-zA-Z_0-9.-]+)">(?:&nbsp;)*</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 .