From 6b31c318e77442f524859a9d7fd49d83b5286f6b Mon Sep 17 00:00:00 2001 From: Luz Paz Date: Sat, 22 Mar 2025 09:49:38 -0400 Subject: [PATCH] Fix typo unlabled->unlabeled --- src/calibre/ebooks/conversion/plugins/html_input.py | 2 +- src/calibre/ebooks/oeb/reader.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/ebooks/conversion/plugins/html_input.py b/src/calibre/ebooks/conversion/plugins/html_input.py index c46ef701e2..04a2df3c00 100644 --- a/src/calibre/ebooks/conversion/plugins/html_input.py +++ b/src/calibre/ebooks/conversion/plugins/html_input.py @@ -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)) diff --git a/src/calibre/ebooks/oeb/reader.py b/src/calibre/ebooks/oeb/reader.py index e380bb8ed3..dba0276c27 100644 --- a/src/calibre/ebooks/oeb/reader.py +++ b/src/calibre/ebooks/oeb/reader.py @@ -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))