Submitter | Augie Fackler |
---|---|
Date | May 29, 2017, 2:32 p.m. |
Message ID | <f1be99397daee2fa8bd9.1496068351@imladris.local> |
Download | mbox | patch |
Permalink | /patch/21054/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/help.py b/mercurial/help.py --- a/mercurial/help.py +++ b/mercurial/help.py @@ -270,7 +270,8 @@ def makeitemsdoc(ui, topic, doc, marker, continue text = gettext(text) if dedent: - text = textwrap.dedent(text) + # Abuse latin1 to use textwrap.dedent() on bytes. + text = textwrap.dedent(text.decode('latin1')).encode('latin1') lines = text.splitlines() doclines = [(lines[0])] for l in lines[1:]: