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

Resolve issues with inner text #473

Merged
merged 3 commits into from
Dec 12, 2023
Merged

Resolve issues with inner text #473

merged 3 commits into from
Dec 12, 2023

Conversation

cpuwzd
Copy link
Contributor

@cpuwzd cpuwzd commented Dec 1, 2023

@robmen robmen changed the title Issue7739 Resolve issues with inner text Dec 12, 2023
@robmen robmen enabled auto-merge (squash) December 12, 2023 13:38
@robmen
Copy link
Member

robmen commented Dec 12, 2023

Yeah, I really like this refactor.

Generalize the issue to apply to most situations in
which inner text is used in Wix 3 to represent condidtions. These all suffer from the mishandling of whitespace.

Review other uses of inner text amd pay attention
to the treatment of CTEXT nodes.
Stopped escaping single and double quotes, as well as
backslashes when converting inner text to attributes.

Eliminated all out parameters of TryGetInnerText in favor
of using a context parameter.
A nearly stateless class and distinct methods
now handle the three scenarios encountered
so far.
@robmen robmen merged commit 34132d8 into wixtoolset:develop Dec 12, 2023
2 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Dec 12, 2023
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.

Condition that spans multiple lines does not convert correctly to WiX v4
2 participants