-
Notifications
You must be signed in to change notification settings - Fork 453
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
Extract messes up file names with whitespace #654
Comments
It's a bad idea to include whitespace in the name. You may have to use escape character for space to create a file on Mac/Linux. e.g.: touch wos\ landing.html. |
Or While I agree that it is recommended not to use spaces in a development project, that doesn't mean this library should break when a developer does a somewhat discouraged, but legitimate thing. If there is a way to escape whitespace in the reference line, then Babel should do so. If not, then Babel should give an error, or just remove the whitespace, so that the name is still close to the original. It definitely shouldn't just output some nonsense invalid references. |
In my opinion this is a bug in Babel. What Babel should do in this case is to enclose the white space in the filename within First Strong Isolate (U+2068) and Pop Directional Isolate (U+2069) characters, as defined in the portable object template format description (https://www.gnu.org/savannah-checkouts/gnu/gettext/manual/html_node/PO-Files.html). |
If a file with whitespace is extracted with the command line tool, the comments include it as 2 different files split on the space, and then sorts them individually. Example output:
Where one of the files is actually "wos landing.html".
Not an urgent issue, I only noticed this while looking at how to handle this edge case for my own code.
The text was updated successfully, but these errors were encountered: