mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-06 12:04:55 +01: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
1 changed files with 2 additions and 1 deletions
|
|
@ -758,7 +758,8 @@ def p(text, tag='p'):
|
|||
if annot['type'] == 'bookmark':
|
||||
p(annot['title'])
|
||||
elif annot['type'] == 'highlight':
|
||||
p(annot['highlighted_text'])
|
||||
for line in annot['highlighted_text'].splitlines():
|
||||
p(line)
|
||||
notes = annot.get('notes')
|
||||
if notes:
|
||||
paras.append('<h4>{} (<a title="{}" href="calibre://edit_result">{}</a>)</h4>'.format(
|
||||
|
|
|
|||
Loading…
Reference in a new issue