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_importer has an invalid pattern match; insert two missing spaces. #3376

Open
egberts opened this issue Jul 23, 2024 · 0 comments
Open
Labels

Comments

@egberts
Copy link
Contributor

egberts commented Jul 23, 2024

  • [ x] I have read the Filing Issues and subsequent “How to Get Help” sections of the documentation.
  • [x ] I have searched the issues (including closed ones) and believe that this is not a duplicate.

Issue

In test_code_in_list() of tests/test_importer.py, the following line mismatched the file:

            sample_line = re.search(r"-   This is a code sample", md).group(0)

and its/tmp/tmpjg53eho1/code-in-list-test.md file derived from pelican/tests/content/wordpressexport.xml content:

...
<ul>
    <li>List Item One!</li>
    <li>List Item Two!</li>
<li>This is a code sample
<pre>
...

Better to replace a single space with /s+ regex pattern.

Platform

Click to expand

Platform

  • OS version and name: Linux 6.1.0-21-amd64 SMP PREEMPT_DYNAMIC Debian 6.1.90-1 (2024-05-03) x86_64 GNU/Linux
  • Python version: 3.11.2
  • Pelican version: HEAD (513abbf)
  • Link to theme: m.css
  • Links to plugins: pelican-plugins
  • Link to your site: n/a
  • Link to your source: n/a
@egberts egberts added the bug label Jul 23, 2024
egberts pushed a commit to egberts/pelican that referenced this issue Jul 23, 2024
egberts pushed a commit to egberts/pelican that referenced this issue Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant