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

Sphinx fails when a po translation contains just whitespace. #1329

Closed
shimizukawa opened this issue Jan 3, 2015 · 1 comment
Closed

Sphinx fails when a po translation contains just whitespace. #1329

shimizukawa opened this issue Jan 3, 2015 · 1 comment

Comments

@shimizukawa
Copy link
Member

If a translation in a .po contains just whitespace but is not the empty string (e.g. " " instead of ""), sphinx raises an exception while loading the file.

The code looks nearly identical in 1.2 (even though it moved to transforms.py line 302), so the error should be reproducible with 1.2 also.

The attachment contains a tiny project that demonstrates the error with 1.1.3 (and a patch for 1.1.3 that fixes it).


@shimizukawa
Copy link
Member Author

From Georg Brandl on 2014-01-19 10:42:05+00:00

Closes #1329: Fix traceback with empty translation msgstr in .po files.

→ <<cset 1762a22>>

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant