comparison mercurial/minirst.py @ 13225:e3bf16703e26 stable 1.7.3

util: fix ellipsis() not to break multi-byte sequence (issue2564) It tries to convert localstr to unicode before truncating. Because we cannot assume that the given text is encoded in local encoding, it falls back to raw string in case of unicode error.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 25 Dec 2010 21:59:00 +0900
parents eda77c3e246a
children 8957c39867f6
comparison
equal deleted inserted replaced
13224:0a1eefaf98f2 13225:e3bf16703e26