mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
1363cd7c37
commit
94ca8a615b
@ -5,7 +5,7 @@ __license__ = 'GPL v3'
|
||||
__copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>'
|
||||
__docformat__ = 'restructuredtext en'
|
||||
|
||||
import textwrap
|
||||
import textwrap, re
|
||||
|
||||
from PyQt5.Qt import QAbstractTableModel, QFont, Qt
|
||||
|
||||
@ -148,7 +148,7 @@ class EmailAccounts(QAbstractTableModel): # {{{
|
||||
if aval:
|
||||
self.tags[account] = aval
|
||||
elif col == 1:
|
||||
self.accounts[account][0] = unicode(value or '').upper()
|
||||
self.accounts[account][0] = re.sub(r'\s+', ',', unicode(value or '').upper())
|
||||
elif col == 0:
|
||||
na = unicode(value or '')
|
||||
from email.utils import parseaddr
|
||||
@ -287,4 +287,3 @@ if __name__ == '__main__':
|
||||
from PyQt5.Qt import QApplication
|
||||
app = QApplication([])
|
||||
test_widget('Sharing', 'Email')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user