[idea] Better handling of codeblocks #17

Open
opened 2025-05-29 14:47:29 +02:00 by StanFromIreland · 1 comment
Contributor

They get errors as such:

<rst-doc>:10: (WARNING/2) Block quote ends without a blank line; unexpected unindent. while parsing: import unittest

class TestFunkcjiStatystycznych(unittest.TestCase):

def test_srednia(self):
  self.assertEqual(srednia([20, 30, 70]), 40.0)

Maybe an option to skip them in some way, --skip-codeblocks?

An idea by Maciek:

I believe Sphinx should be adding code-block flag to msgids made from code blocks in gettext builder. Then pospell should enable us to filter out those msgids from checking.

They get errors as such: ``` <rst-doc>:10: (WARNING/2) Block quote ends without a blank line; unexpected unindent. while parsing: import unittest class TestFunkcjiStatystycznych(unittest.TestCase): def test_srednia(self): self.assertEqual(srednia([20, 30, 70]), 40.0) ``` Maybe an option to skip them in some way, `--skip-codeblocks`? An idea by Maciek: > I believe Sphinx should be adding code-block flag to msgids made from code blocks in gettext builder. Then pospell should enable us to filter out those msgids from checking.

For reference, a ticket for adding the flags by Sphinx: https://github.com/sphinx-doc/sphinx/issues/13722.

For reference, a ticket for adding the flags by Sphinx: https://github.com/sphinx-doc/sphinx/issues/13722.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AFPy/pospell#17
No description provided.