Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Fix test_typogrify_ignore_tags due to Typogrify 2.1 changes #3438

Merged
merged 3 commits into from
Jan 14, 2025
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions pelican/tests/test_readers.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,13 +411,12 @@ 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"]
)
expected = (
"<p>THIS is some content. With some stuff to&nbsp;"
"<p>THIS is some content. With some stuff to "
"&quot;typogrify&quot;...</p>\n<p>Now with added "
'support for <abbr title="three letter acronym">'
"TLA</abbr>.</p>\n"
Expand Down
Loading