doc: escape backslash
authorGregory Szorc <gregory.szorc@gmail.com>
Mon, 04 Feb 2019 14:22:50 -0800
changeset 41567 eb14ab7db33e
parent 41566 99b4c6d73a72
child 41568 01417ca7f2e2
doc: escape backslash This avoids a SyntaxWarning on Python 3.8 due to invalid \ escape. Differential Revision: https://phab.mercurial-scm.org/D5843
doc/hgmanpage.py
--- a/doc/hgmanpage.py	Mon Feb 04 14:16:52 2019 -0800
+++ b/doc/hgmanpage.py	Mon Feb 04 14:22:50 2019 -0800
@@ -376,7 +376,7 @@
         tmpl = (".TH %(title_upper)s %(manual_section)s"
                 " \"%(date)s\" \"%(version)s\" \"%(manual_group)s\"\n"
                 ".SH NAME\n"
-                "%(title)s \- %(subtitle)s\n")
+                "%(title)s \\- %(subtitle)s\n")
         return tmpl % self._docinfo
 
     def append_header(self):