##// END OF EJS Templates
color: minor reversal of two conditional clause for clarity...
Pierre-Yves David -
r31071:350d737e default
parent child Browse files
Show More
@@ -165,14 +165,14 b' def _render_effects(text, effects):'
165 165 'Wrap text in commands to turn on each effect.'
166 166 if not text:
167 167 return text
168 if not _terminfo_params:
168 if _terminfo_params:
169 start = ''.join(_effect_str(effect)
170 for effect in ['none'] + effects.split())
171 stop = _effect_str('none')
172 else:
169 173 start = [str(_effects[e]) for e in ['none'] + effects.split()]
170 174 start = '\033[' + ';'.join(start) + 'm'
171 175 stop = '\033[' + str(_effects['none']) + 'm'
172 else:
173 start = ''.join(_effect_str(effect)
174 for effect in ['none'] + effects.split())
175 stop = _effect_str('none')
176 176 return ''.join([start, text, stop])
177 177
178 178 w32effects = None
General Comments 0
You need to be logged in to leave comments. Login now