diff options
author | mathieui <mathieui@mathieui.net> | 2014-03-23 00:15:01 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2014-03-23 00:15:01 +0100 |
commit | 186803d9a97d7efb089acc470b98293b7e472db5 (patch) | |
tree | 89533dc38acddbcfbb34b162974bd29a62c07db3 /src/xhtml.py | |
parent | 918e15d1781fce0fbf2b7b2b047be32163bc4679 (diff) | |
download | poezio-186803d9a97d7efb089acc470b98293b7e472db5.tar.gz poezio-186803d9a97d7efb089acc470b98293b7e472db5.tar.bz2 poezio-186803d9a97d7efb089acc470b98293b7e472db5.tar.xz poezio-186803d9a97d7efb089acc470b98293b7e472db5.zip |
Fix formatting, some typos, and unused code, and add docstrings
- No idea why subclasses of ConversationTab were working before
(info_header was overriden with None in __init__)
- Or why the date parsing worked (“Exeception”)
- Some more reformatting with pylint indications
- Document each module in the tabs module
Diffstat (limited to 'src/xhtml.py')
-rw-r--r-- | src/xhtml.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xhtml.py b/src/xhtml.py index 85e764ba..ed45ff53 100644 --- a/src/xhtml.py +++ b/src/xhtml.py @@ -421,9 +421,9 @@ def convert_simple_to_full_colors(text): # TODO, have a single list of this. This is some sort of # dusplicate from windows.format_chars mapping = str.maketrans({'\x0E': '\x19b', '\x0F': '\x19o', '\x10': '\x19u', - '\x11': '\x191', '\x12': '\x192','\x13': '\x193', - '\x14': '\x194', '\x15': '\x195','\x16': '\x196', - '\x17': '\x197', '\x18': '\x198','\x19': '\x199'}) + '\x11': '\x191', '\x12': '\x192', '\x13': '\x193', + '\x14': '\x194', '\x15': '\x195', '\x16': '\x196', + '\x17': '\x197', '\x18': '\x198', '\x19': '\x199'}) text = text.translate(mapping) def add_curly_bracket(match): return match.group(0) + '}' |