changeset 41553:eb14ab7db33e

doc: escape backslash This avoids a SyntaxWarning on Python 3.8 due to invalid \ escape. Differential Revision: https://phab.mercurial-scm.org/D5843
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 04 Feb 2019 14:22:50 -0800
parents 99b4c6d73a72
children 01417ca7f2e2
files doc/hgmanpage.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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):