This avoids a SyntaxWarning on Python 3.8 due to invalid \ escape.
Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
( )
hg-reviewers |
This avoids a SyntaxWarning on Python 3.8 due to invalid \ escape.
Lint Skipped |
Unit Tests Skipped |
Path | Packages | |||
---|---|---|---|---|
M | doc/hgmanpage.py (2 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
Gregory Szorc | Feb 4 2019, 5:22 PM |
Status | Author | Revision | |
---|---|---|---|
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | D5843 doc: escape backslash | |
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg |
def list_end(self): | def list_end(self): | ||||
self.dedent() | self.dedent() | ||||
self._list_char.pop() | self._list_char.pop() | ||||
def header(self): | def header(self): | ||||
tmpl = (".TH %(title_upper)s %(manual_section)s" | tmpl = (".TH %(title_upper)s %(manual_section)s" | ||||
" \"%(date)s\" \"%(version)s\" \"%(manual_group)s\"\n" | " \"%(date)s\" \"%(version)s\" \"%(manual_group)s\"\n" | ||||
".SH NAME\n" | ".SH NAME\n" | ||||
"%(title)s \- %(subtitle)s\n") | "%(title)s \\- %(subtitle)s\n") | ||||
return tmpl % self._docinfo | return tmpl % self._docinfo | ||||
def append_header(self): | def append_header(self): | ||||
"""append header with .TH and .SH NAME""" | """append header with .TH and .SH NAME""" | ||||
# NOTE before everything | # NOTE before everything | ||||
# .TH title_upper section date source manual | # .TH title_upper section date source manual | ||||
if self.header_written: | if self.header_written: | ||||
return | return |