mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Sending by email: When adding comments also add series
This commit is contained in:
parent
b37a50336b
commit
9e008a62bc
@ -440,6 +440,10 @@ class EmailMixin: # {{{
|
||||
os.path.splitext(f)[1][1:].upper())
|
||||
if mi.comments and gprefs['add_comments_to_email']:
|
||||
from calibre.utils.html2text import html2text
|
||||
from calibre.ebooks.metadata import fmt_sidx
|
||||
if mi.series:
|
||||
sidx=fmt_sidx(1.0 if mi.series_index is None else mi.series_index, use_roman=config['use_roman_numerals_for_series_number'])
|
||||
texts[-1] += '\n\n' + _('{series_index} of {series}').format(series_index=sidx, series=mi.series)
|
||||
texts[-1] += '\n\n' + _('About this book:') + '\n\n' + textwrap.fill(html2text(mi.comments))
|
||||
if is_for_kindle(to):
|
||||
prefix = str(newmi.title or t)
|
||||
|
Loading…
x
Reference in New Issue
Block a user