comparison doc/hgmanpage.py @ 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 a8ba9a23c893
children 51df72655b1a
comparison
equal deleted inserted replaced
41552:99b4c6d73a72 41553:eb14ab7db33e
374 374
375 def header(self): 375 def header(self):
376 tmpl = (".TH %(title_upper)s %(manual_section)s" 376 tmpl = (".TH %(title_upper)s %(manual_section)s"
377 " \"%(date)s\" \"%(version)s\" \"%(manual_group)s\"\n" 377 " \"%(date)s\" \"%(version)s\" \"%(manual_group)s\"\n"
378 ".SH NAME\n" 378 ".SH NAME\n"
379 "%(title)s \- %(subtitle)s\n") 379 "%(title)s \\- %(subtitle)s\n")
380 return tmpl % self._docinfo 380 return tmpl % self._docinfo
381 381
382 def append_header(self): 382 def append_header(self):
383 """append header with .TH and .SH NAME""" 383 """append header with .TH and .SH NAME"""
384 # NOTE before everything 384 # NOTE before everything