This commit is contained in:
Kovid Goyal 2024-06-23 19:37:26 +05:30
parent 61abe65c01
commit 1b2697a0d6
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -567,8 +567,8 @@ class Worker(Thread): # Get details {{{
filtered_characters = list(s for s in res if s.isprintable())
except AttributeError:
filtered_characters = list(s for s in res if s in string.printable)
res = ''.join(filtered_characters).strip()
return res
res = ''.join(filtered_characters)
return res.strip()
def parse_title(self, root):
@ -1006,7 +1006,7 @@ class Worker(Thread): # Get details {{{
def parse_detail_cells(self, mi, c1, c2):
name = self.totext(c1, only_printable=True).strip().strip(':').strip()
val = self.totext(c2).strip()
val = self.totext(c2)
val = val.replace('\u200e', '').replace('\u200f', '')
if not val:
return