Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.

Added support for texture paths with spaces#61

Merged
codecat merged 1 commit into
codecat:masterfrom
DMartinek:patch-1
Feb 10, 2023
Merged

Added support for texture paths with spaces#61
codecat merged 1 commit into
codecat:masterfrom
DMartinek:patch-1

Conversation

@DMartinek

Copy link
Copy Markdown
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

codecat commented Feb 10, 2023

Copy link
Copy Markdown
Owner

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants