mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
139fd9ca3c
commit
ea6d66183a
@ -96,7 +96,7 @@ class BookInfo(QDialog, Ui_BookInfo):
|
|||||||
self.setWindowTitle(info[_('Title')])
|
self.setWindowTitle(info[_('Title')])
|
||||||
self.title.setText('<b>'+info.pop(_('Title')))
|
self.title.setText('<b>'+info.pop(_('Title')))
|
||||||
comments = info.pop(_('Comments'), '')
|
comments = info.pop(_('Comments'), '')
|
||||||
if re.search(r'<[a-z]+>', comments) is None:
|
if re.search(r'<[a-zA-Z]+>', comments) is None:
|
||||||
lines = comments.splitlines()
|
lines = comments.splitlines()
|
||||||
lines = [x if x.strip() else '<br><br>' for x in lines]
|
lines = [x if x.strip() else '<br><br>' for x in lines]
|
||||||
comments = '\n'.join(lines)
|
comments = '\n'.join(lines)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user