Skip to content

Parse PO flags spread across several #, lines - #72

Merged
arvida merged 1 commit into
mainfrom
fix/po-flags-multiline
Sep 14, 2026
Merged

arvida merged 1 commit into
mainfrom
fix/po-flags-multiline

Conversation

@arvida

@arvida arvida commented Sep 14, 2026

Copy link
Copy Markdown
Contributor
  • gettext allows flags on one #, line or across several, and gettext-parser joins the latter with a newline rather than a comma
  • Splitting on commas alone produced one bogus flag, "fuzzy\npython-format", which no membership test could match

- gettext allows flags on one `#,` line or across several, and
  gettext-parser joins the latter with a newline rather than a comma
- Splitting on commas alone produced one bogus flag, "fuzzy\npython-format",
  which no membership test could match
- Add a test parsed from real PO text covering both forms

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@arvida
arvida merged commit b542033 into main Sep 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant