[PATCH 1 of 3] color: fix using multiple effects

Dan Villiom Podlaski Christiansen danchr at gmail.com
Sun May 1 10:11:54 CDT 2011


# HG changeset patch
# User Dan Villiom Podlaski Christiansen <danchr at gmail.com>
# Date 1304261688 -7200
# Node ID 1c8a84c0797a23092947efbe60d4ef63d5d9859d
# Parent  c38bdcaf534555686160dcf19e94171bfc0bc475
color: fix using multiple effects

diff --git a/hgext/color.py b/hgext/color.py
--- a/hgext/color.py
+++ b/hgext/color.py
@@ -290,7 +290,7 @@ class colorui(uimod.ui):
             s = _styles.get(l, '')
             if s:
                 effects.append(s)
-        effects = ''.join(effects)
+        effects = ' '.join(effects)
         if effects:
             return '\n'.join([render_effects(s, effects)
                               for s in msg.split('\n')])


More information about the Mercurial-devel mailing list