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

BUGFIX: Support slashes in texts property #13

Merged
merged 1 commit into from
Nov 14, 2018

Conversation

mficzel
Copy link
Member

@mficzel mficzel commented Oct 10, 2018

Previously only single quotes were escaped in afx text and string nodes. This changes
introduces a more generic escaping via addslashes that includes slashes, single- and double-quotes.
That way the rendered result of afx should match the expectation better.

resolves: #2

@mficzel mficzel requested a review from mstruebing October 10, 2018 06:57
@mficzel mficzel force-pushed the bugfix/supportSlashesInTextsAndStrings branch from 84e0c73 to d7a3c8a Compare October 10, 2018 07:21
@mficzel mficzel changed the title BUGFIX: Support slashes in texts and strings property BUGFIX: Support slashes in texts property Oct 10, 2018
Copy link
Contributor

@mstruebing mstruebing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@jonnitto
Copy link
Member

jonnitto commented Nov 8, 2018

Looks good. What is your question?

@mficzel
Copy link
Member Author

mficzel commented Nov 8, 2018

@jonnitto the ongoing discussion with @grebaldi is wether the string content in afx is a string or fusion-string. The escaping in jsx behaves mostly like afx already does. This also affects the related question what kind of comments should be supported in afx from.

I agree with @grebaldi that we should be as intuitive for editors with jsx background. However i would be fine with adding behavior such devs would consider better as jsx.

@kdambekalns kdambekalns requested a review from grebaldi November 8, 2018 21:31
@mficzel mficzel self-assigned this Nov 12, 2018
@mficzel
Copy link
Member Author

mficzel commented Nov 12, 2018

I will merge this soonish and release togehter with @path as 1.1.0.

@mficzel mficzel changed the base branch from master to 1.1 November 14, 2018 16:52
Previously only single quotes were escaped in afx text nodes. This change
introduces a more generic escaping via addslashes that includes
slashes, single- and double-quotes. That way the rendered result of
afx will match the expectation better.

resolves: neos#2
@mficzel mficzel force-pushed the bugfix/supportSlashesInTextsAndStrings branch from d7a3c8a to ef6d3d0 Compare November 14, 2018 16:55
@mficzel mficzel merged commit 92d5950 into neos:1.1 Nov 14, 2018
@jonnitto jonnitto removed the question label Nov 14, 2018
kdambekalns pushed a commit to kdambekalns/fusion-afx that referenced this pull request Dec 3, 2020
…ndStrings

BUGFIX: Support slashes in texts property
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.

4 participants