mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Annotations browser: When showing a highlight preserve paragraph boundaries for multi-paragraph highlights. Fixes #1909730 [Enhancement Request: Render newlines in Annotation Browser.](https://bugs.launchpad.net/calibre/+bug/1909730)
This commit is contained in:
parent
8e0ba51fd3
commit
6a0f5a3580
@ -758,7 +758,8 @@ class DetailsPanel(QWidget):
|
|||||||
if annot['type'] == 'bookmark':
|
if annot['type'] == 'bookmark':
|
||||||
p(annot['title'])
|
p(annot['title'])
|
||||||
elif annot['type'] == 'highlight':
|
elif annot['type'] == 'highlight':
|
||||||
p(annot['highlighted_text'])
|
for line in annot['highlighted_text'].splitlines():
|
||||||
|
p(line)
|
||||||
notes = annot.get('notes')
|
notes = annot.get('notes')
|
||||||
if notes:
|
if notes:
|
||||||
paras.append('<h4>{} (<a title="{}" href="calibre://edit_result">{}</a>)</h4>'.format(
|
paras.append('<h4>{} (<a title="{}" href="calibre://edit_result">{}</a>)</h4>'.format(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user