[rituko_a] intro ACE ascii_formatting
This commit is contained in:
parent
a4839a720c
commit
6a6ab0b7f1
|
@ -78,7 +78,10 @@ class Config:
|
|||
'use_speller': [ opt_bool, False ],
|
||||
'print_time': [ opt_str, 'always' ],
|
||||
'useemoticons': [ opt_bool, True ],
|
||||
'show_ascii_formatting_chars': [ opt_bool, False , _('If True, do not remove */_ . So *abc* will be bold but with * * not removed.')],
|
||||
'ascii_formatting': [ opt_bool, True,
|
||||
_('Treat * / _ pairs as possible formatting characters.')],
|
||||
'show_ascii_formatting_chars': [ opt_bool, False , _('If True, do not '
|
||||
'remove */_ . So *abc* will be bold but with * * not removed.')],
|
||||
'sounds_on': [ opt_bool, True ],
|
||||
# 'aplay', 'play', 'esdplay', 'artsplay' detected first time only
|
||||
'soundplayer': [ opt_str, '' ],
|
||||
|
|
|
@ -1331,7 +1331,9 @@ class Interface:
|
|||
r'(?<!\w|\<)' r'/[^\s/]' r'([^/]*[^\s/])?' r'/(?!\w)|'\
|
||||
r'(?<!\w)' r'_[^\s_]' r'([^_]*[^\s_])?' r'_(?!\w)'
|
||||
|
||||
basic_pattern = links + mail + formatting
|
||||
basic_pattern = links + mail
|
||||
if gajim.config.get('ascii_formatting'):
|
||||
basic_pattern += formatting
|
||||
self.basic_pattern_re = sre.compile(basic_pattern, sre.IGNORECASE)
|
||||
|
||||
emoticons_pattern = ''
|
||||
|
|
Loading…
Reference in New Issue