mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:14:02 +02:00
Added read checkmark to Description page, fixed note prefix len
This commit is contained in:
parent
526e7198d7
commit
643f60f6e9
1 changed files with 7 additions and 2 deletions
|
|
@ -1138,7 +1138,12 @@ def generateHTMLDescriptions(self):
|
|||
aTag['href'] = "%s.html#%s" % ("ByAlphaAuthor", self.generateAuthorAnchor(title['author']))
|
||||
#aTag.insert(0, escape(title['author']))
|
||||
aTag.insert(0, title['author'])
|
||||
authorTag.insert(0, NavigableString("by "))
|
||||
|
||||
# Insert READ_SYMBOL
|
||||
if title['read']:
|
||||
authorTag.insert(0, NavigableString(self.READ_SYMBOL + "by "))
|
||||
else:
|
||||
authorTag.insert(0, NavigableString(self.NOT_READ_SYMBOL + "by "))
|
||||
authorTag.insert(1, aTag)
|
||||
|
||||
'''
|
||||
|
|
@ -3054,7 +3059,7 @@ def processSpecialTags(self, tags, this_title, opts):
|
|||
for tag in tags:
|
||||
tag = self.convertHTMLEntities(tag)
|
||||
if tag.startswith(opts.note_tag):
|
||||
this_title['notes'] = tag[1:]
|
||||
this_title['notes'] = tag[len(self.opts.note_tag):]
|
||||
elif tag == opts.read_tag:
|
||||
this_title['read'] = True
|
||||
elif re.search(opts.exclude_genre, tag):
|
||||
|
|
|
|||
Loading…
Reference in a new issue