|
@@ -172,10 +172,14 @@ class Diff(object):
|
172
|
172
|
out.append(patt.sub(r'\1', markup))
|
173
|
173
|
markup = patt.sub(r'\3', markup)
|
174
|
174
|
else:
|
175
|
|
- # FIXME: utf-8 wchar broken here
|
|
175
|
+ # FIXME: utf-8 wchar might break the rule here, e.g.
|
|
176
|
+ # u'\u554a' takes double width of a single letter, also this
|
|
177
|
+ # depends on your terminal font. I guess audience of this
|
|
178
|
+ # tool never put that kind of symbol in their code :-)
|
|
179
|
+ #
|
176
|
180
|
out.append(markup[0])
|
177
|
|
- markup = markup[1:]
|
178
|
181
|
count += 1
|
|
182
|
+ markup = markup[1:]
|
179
|
183
|
|
180
|
184
|
if count == width and repl.sub('', markup):
|
181
|
185
|
# stripped: output fulfil and still have ascii in markup
|