Skip to content

gettext build broken on substituted strings #3093

@doctorlard

Description

@doctorlard

When running:

  sphinx-build -b gettext ...

In sphinx/builders/gettext.py MessageCatalogBuilder.finish() calls canon_path() which throws an AttributeError when its argument is None, which seems to happen in situations with lots of .. image:: directives with :alt: messages. This has been broken since at least October last year (commit 281bf2a).
I could fix the functions, but this will probably just hide the possible bug somewhere else that is returning None for the translation string source file and line number.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions