Skip to content
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

Added support for texture paths with spaces #61

Merged
merged 1 commit into from
Feb 10, 2023
Merged

Added support for texture paths with spaces #61

merged 1 commit into from
Feb 10, 2023

Conversation

DMartinek
Copy link
Contributor

First congratulation on the great plugin, it works really well!

While testing a few maps I noticed that TrenchBroom exports texture paths with spaces in quotes. Unfortunately the current tokenizer for the map format ignored the quotes and cut the paths at the first space.

I tried to fix this by allowing the tokenizer to skip spaces while parsing the texture scope. It is not the most elegant solution due to introducing scope dependence in the tokenizer but else the entity parsing code was impacted, but it allows usage of spaces in texture filenames now.

First congratulation on the great plugin, it works really well!

While testing a few maps I noticed that TrenchBroom exports texture paths with spaces in quotes. Unfortunately the current tokenizer for the map format ignored the quotes and cut the paths at the first space.

I tried to fix this by allowing the tokenizer to skip spaces while parsing the texture scope. It is not the most elegant solution due to introducing scope dependence in the tokenizer but else the entity parsing code was impacted, but it allows usage of spaces in texture filenames now.
@codecat codecat merged commit 72a2743 into codecat:master Feb 10, 2023
@codecat
Copy link
Owner

codecat commented Feb 10, 2023

It seems like I forgot to review this PR, my apologies! 🙈 Thank you! 🎉

@DMartinek DMartinek deleted the patch-1 branch February 11, 2023 15:41
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.

2 participants