From 7a4c89f64af9940cc9d07d979e7c23877c1677b3 Mon Sep 17 00:00:00 2001 From: David Lesieur Date: Thu, 26 Dec 2024 19:05:16 -0500 Subject: [PATCH 1/3] Adjust test following changes in Typogrify. Typogrify's 'widont' filter used to ignore the list of 'ignore_tags', but this got fixed in Typogrify. --- pelican/tests/test_readers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pelican/tests/test_readers.py b/pelican/tests/test_readers.py index 68938a83a..e13cbb118 100644 --- a/pelican/tests/test_readers.py +++ b/pelican/tests/test_readers.py @@ -417,7 +417,7 @@ def test_typogrify_ignore_tags(self): path="article.rst", TYPOGRIFY=True, TYPOGRIFY_IGNORE_TAGS=["p"] ) expected = ( - "

THIS is some content. With some stuff to " + "

THIS is some content. With some stuff to " ""typogrify"...

\n

Now with added " 'support for ' "TLA.

\n" From b4fcb7f4e34c415dce457a91426c5966bb8ffd84 Mon Sep 17 00:00:00 2001 From: David Lesieur Date: Fri, 27 Dec 2024 16:42:15 -0500 Subject: [PATCH 2/3] Remove obsolete comment regarding widont. --- pelican/tests/test_readers.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pelican/tests/test_readers.py b/pelican/tests/test_readers.py index e13cbb118..4372fea16 100644 --- a/pelican/tests/test_readers.py +++ b/pelican/tests/test_readers.py @@ -411,8 +411,7 @@ def test_typogrify_summary(self): def test_typogrify_ignore_tags(self): try: - # typogrify should be able to ignore user specified tags, - # but tries to be clever with widont extension + # typogrify should be able to ignore user specified tags. page = self.read_file( path="article.rst", TYPOGRIFY=True, TYPOGRIFY_IGNORE_TAGS=["p"] ) From b3ef32bcf143479283e853b5b7561a2c840cfe66 Mon Sep 17 00:00:00 2001 From: Justin Mayer Date: Tue, 14 Jan 2025 12:35:17 +0100 Subject: [PATCH 3/3] test: Require Typogrify 2.1+ to pass updated test --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f4ce80cd7..02a1d56a1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -82,7 +82,7 @@ dev = [ "jinja2>=3.1.2", "lxml>=4.9.3", "markdown>=3.5.1", - "typogrify>=2.0.7", + "typogrify>=2.1.0", "sphinx>=7.1.2", "sphinxext-opengraph>=0.9.0", "furo==2023.9.10",