Fix typo unlabled->unlabeled

This commit is contained in:
Luz Paz 2025-03-22 09:49:38 -04:00
parent b3274919d2
commit 6b31c318e7
2 changed files with 2 additions and 2 deletions

View File

@ -229,7 +229,7 @@ class HTMLInput(InputFormatPlugin):
title = re.sub(r'\s+', ' ', title.strip())
if title:
titles.append(title)
headers.append('(unlabled)')
headers.append('(unlabeled)')
for tag in ('h1', 'h2', 'h3', 'h4', 'h5', 'strong'):
expr = '/h:html/h:body//h:%s[position()=1]/text()'
header = ''.join(xpath(html, expr % tag))

View File

@ -549,7 +549,7 @@ class OEBReader:
title = COLLAPSE_RE.sub(' ', title.strip())
if title:
titles.append(title)
headers.append('(unlabled)')
headers.append('(unlabeled)')
for tag in ('h1', 'h2', 'h3', 'h4', 'h5', 'strong'):
expr = '/h:html/h:body//h:%s[position()=1]/text()'
header = ''.join(xpath(html, expr % tag))