-
Notifications
You must be signed in to change notification settings - Fork 17
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
qlr and other downloads do not name file properly with spaces #360
Comments
could you give me an example from testing? i may misunderstand this issue, but i couldn't find the case where the file naming failed with spaces. |
Even if you can't replicate, I think we need to remove spaces. It's not a good habit to have spaces in file name. Let's replace them with an underscore. |
This is now working albeit with some inconsistency @boney-bun have I see the same file has been altered differently. In some instances the space has been removed completely and in other instances the space has been replaced with a dash (-) If this inconsistency does not bother anyone then we can close this one . But I am in favour of having a standard - be it remove the space completely or replace it with a dash not to have a mix of both within the same layer |
@gubuntu i think @NyakudyaA case is the expected behaviour from the vanila geonode. i've been looking at the codes, here are the logic for determining title when uploading files:
so, the all in all, can we close this issue then? |
@boney-bun I understand that's what vanilla Geonode does. Do you think the Geonode community chose to use hyphen because it looks nicer than underscore for the title?. I just thought we could standardize and use an underscore everywhere rather than mixing between the two whether it's being used in the title or the layer name |
@NyakudyaA indeed.. it's a matter of personal preference. @gubuntu which one do you prefer for title? |
Let's leave upstream to put hyphens in titles. As long as the OP is fixed (which it seems to be) we can close this) |
If the layer or map name has spaces then the qlr filename generated stops at the first space and does not add .qlr
same for leaflet download (and probably others)
(from testing server)
depends on #438
child of #457
The text was updated successfully, but these errors were encountered: