Patchwork [3,of,8] util: adjust indent level in wrap()

login
register
mail settings
Submitter Yuya Nishihara
Date March 22, 2018, 3:01 p.m.
Message ID <139e8a7b093d254d6c92.1521730914@mimosa>
Download mbox | patch
Permalink /patch/29782/
State Accepted
Headers show

Comments

Yuya Nishihara - March 22, 2018, 3:01 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1521720852 -32400
#      Thu Mar 22 21:14:12 2018 +0900
# Node ID 139e8a7b093d254d6c92598a06c9ae1d958a483b
# Parent  8ab5f1228ee081fcef083dd026c2be53f4ed6932
util: adjust indent level in wrap()

Patch

diff --git a/mercurial/util.py b/mercurial/util.py
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -2883,11 +2883,11 @@  def wrap(line, width, initindent='', han
         # adjust for weird terminal size
         width = max(78, maxindent + 1)
     line = line.decode(pycompat.sysstr(encoding.encoding),
-                    pycompat.sysstr(encoding.encodingmode))
+                       pycompat.sysstr(encoding.encodingmode))
     initindent = initindent.decode(pycompat.sysstr(encoding.encoding),
-                    pycompat.sysstr(encoding.encodingmode))
+                                   pycompat.sysstr(encoding.encodingmode))
     hangindent = hangindent.decode(pycompat.sysstr(encoding.encoding),
-                    pycompat.sysstr(encoding.encodingmode))
+                                   pycompat.sysstr(encoding.encodingmode))
     wrapper = _MBTextWrapper(width=width,
                              initial_indent=initindent,
                              subsequent_indent=hangindent)