[issue40835] Incorrect handling for msgctxt in msgfmt.py

Doug Addy report at bugs.python.org
Sun May 31 17:16:05 EDT 2020


Doug Addy <da1910 at protonmail.com> added the comment:

And a patch:

After the end of a message entry the options for the next line are:
1. A comment - we already reset msgctxt to None here
2. A blank line - we can have empty lines anywhere we want, so do nothing
3. A new msgctxt line - Set msgctxt to the new context
4. A msgid - This is the current failing behaviour. Fix sets msgctxt back to None.

----------
keywords: +patch
Added file: https://bugs.python.org/file49206/40835.patch

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40835>
_______________________________________


More information about the Python-bugs-list mailing list