Skip to content
Snippets Groups Projects
Commit 36a3db5e authored by red-agent's avatar red-agent
Browse files

Tiny code style corrections

parent 16cd926e
No related branches found
No related tags found
No related merge requests found
......@@ -29,14 +29,18 @@ import defs
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'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment