-
Notifications
You must be signed in to change notification settings - Fork 444
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
Enclose white spaces in references #1105
Conversation
Since version 0.22 gettext encloses file names in references which contain white spaces or tabs within First Strong Isolate (U+2068) and Pop Directional Isolate (U+2069). This commit adds the same behavior for Babel.
Hi! Thanks for the contribution – could you link to gettext changelog/code for this? |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1105 +/- ##
==========================================
+ Coverage 91.09% 91.26% +0.16%
==========================================
Files 26 27 +1
Lines 4470 4602 +132
==========================================
+ Hits 4072 4200 +128
- Misses 398 402 +4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Sorry, of course. Here you go: https://git.savannah.gnu.org/gitweb/?p=gettext.git;a=commitdiff;h=4cacad44e67171ce136cf5c1ae01093aa8e7a7ad |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beyond the inline comment – we should probably also strip these delimiters when parsing a .po file? A roundtrip test would be neat.
Yes of course. I didn't think about that initially, but this makes perfect sense. I added the necessary logic for that.
I added a bunch of additional tests, including a roundtrip test. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one nit, otherwise looks good to me, thanks!
@akx in case you missed this ;) |
I was getting married and on holiday. Back in the proverbial office now :) |
No worries then :) And Congrats! 🎉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One performance comment :)
Since version 0.22 gettext encloses file names in references which contain white spaces or tabs within First Strong Isolate (U+2068) and Pop Directional Isolate (U+2069). This commit adds the same behavior for Babel.
Fixes #654