-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
"keep whitespace" mode #11
Comments
It seems as it's just this one line that removes the whitespaces: https://github.com/neos/fusion-afx/blob/master/Classes/Service/AfxService.php#L182 So it should be fairly easy to implement this |
The linked issue neos/neos-development-collection#3331 has another example for "regular website content", this is not limited to "exotic" code or mail rendering… |
@bwaidelich Is that line still the correct one? The link points to |
fusion-afx/Classes/Service/AfxService.php Line 327 in 3774d2f
seems to be the correct location |
This is the right one IIRC: fusion-afx/Classes/Service/AfxService.php Line 306 in 3774d2f
|
As documented AFX strips whitespaces and newlines and this makes a lot of sense usually.
But sometimes it can be useful or even required to keep the whitespaces, for example when using AFX for email templates, code generators or code snippets.
For those it would be nice to have some kind of "keep whitespace" mode, for example:
The text was updated successfully, but these errors were encountered: