Fix: The paragraph in programming.po fail with a proper :: with: #149

Merged
jeanas merged 1 commits from mdk/python-docs-fr:mdk-programming-fix into 3.11 2023-05-31 09:55:06 +00:00
Owner
programming.rst:1885:<translated>:3:Literal block expected; none found.

Par contre je ne comprends pas du tout pourquoi :D bug sphinx ?

programming.rst:1885:<translated>:3:Literal block expected; none found. Par contre je ne comprends pas du tout pourquoi :D bug sphinx ?
mdk added 1 commit 2023-05-25 09:20:18 +00:00
ci/woodpecker/pr/woodpecker Pipeline was successful Details
8ffe02262d
Fix: The paragraph in programming.po fail with a proper :: with:
programming.rst:1885:<translated>:3:Literal block expected; none found.
Collaborator

Je pense savoir pourquoi. Dans le code de Sphinx (sphinx/transforms/i18n.py), il y a

            if msgstr.strip().endswith('::'):
                msgstr += '\n\n   dummy literal'

Ça marche dans le cas de

Foo bar baz::

   dummy literal

mais pas avec

2) Foo bar baz::

   dummy literal

à cause de l'indentation...

Je pense savoir pourquoi. Dans le code de Sphinx (`sphinx/transforms/i18n.py`), il y a ```python if msgstr.strip().endswith('::'): msgstr += '\n\n dummy literal' ``` Ça marche dans le cas de ``` Foo bar baz:: dummy literal ``` mais pas avec ``` 2) Foo bar baz:: dummy literal ``` à cause de l'indentation...
First-time contributor
voici un souci dans le même contexte: https://stackoverflow.com/questions/4206393/source-code-in-bullet-lists-with-restructuredtext
jeanas approved these changes 2023-05-31 09:54:47 +00:00
jeanas merged commit 3ebf8e4a31 into 3.11 2023-05-31 09:55:06 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
3 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/python-docs-fr#149
No description provided.