From 6a501917283c664c3724b1b8b46a96d4f1874d30 Mon Sep 17 00:00:00 2001 From: Justin Mayer Date: Tue, 25 Jun 2024 10:49:07 +0200 Subject: [PATCH] Tweak Markdown-not-installed console warnings Adding single-quotation marks should cause 'markdown' to be highlighted in green, presumably via Rich. --- pelican/readers.py | 4 ++-- pelican/tests/test_pelican.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pelican/readers.py b/pelican/readers.py index ee7e3466..3d0e8d58 100644 --- a/pelican/readers.py +++ b/pelican/readers.py @@ -353,8 +353,8 @@ class MarkdownReader(BaseReader): def disabled_message(self) -> str: return ( - "Could not import markdown.Markdown. " - "Have you installed the markdown package?" + "Could not import 'markdown.Markdown'. " + "Have you installed the 'markdown' package?" ) diff --git a/pelican/tests/test_pelican.py b/pelican/tests/test_pelican.py index e243be61..a43afa3e 100644 --- a/pelican/tests/test_pelican.py +++ b/pelican/tests/test_pelican.py @@ -322,6 +322,6 @@ class TestPelican(LoggedTestCase): self.assertLogCountEqual( 1, ".*article_with_md_extension.md: " - "Could not import markdown.Markdown. " - "Have you installed the markdown package?", + "Could not import 'markdown.Markdown'. " + "Have you installed the 'markdown' package?", )