changeset 091ee996b8c9 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=091ee996b8c9 description: Tiny code style corrections
diffstat:
src/common/i18n.py | 16 ++++++++++------ 1 files changed, 10 insertions(+), 6 deletions(-)
diffs (28 lines):
diff -r 6eecfdb97a5a -r 091ee996b8c9 src/common/i18n.py --- a/src/common/i18n.py Sat Sep 26 11:55:49 2009 +0200 +++ b/src/common/i18n.py Sat Sep 26 13:44:08 2009 +0300 @@ -29,14 +29,18 @@ import unicodedata
def paragraph_direction_mark(text): - """Determine paragraph writing direction according to + """ + Determine paragraph writing direction according to http://www.unicode.org/reports/tr9/#The_Paragraph_Level - Returns either Unicode LTR mark or RTL mark.""" - for c in text: - bidi = unicodedata.bidirectional(c) - if bidi == 'L': return u'\u200E' - elif bidi == 'AL' or bidi == 'R': return u'\u200F' + Returns either Unicode LTR mark or RTL mark. + """ + for char in text: + bidi = unicodedata.bidirectional(char) + if bidi == 'L': + return u'\u200E' + elif bidi == 'AL' or bidi == 'R': + return u'\u200F'
return u'\u200E'