[
https://issues.apache.org/jira/browse/SLING-5441?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15245406#comment-15245406
]
Konrad Windszus commented on SLING-5441:
----------------------------------------
According to the JSP Spec 2.1: {{Scripting Elements}} ($JSP.1.12) (which also
include {{expressions}}) are neither {{Directives}} ($JSP.1.10) nor {{Actions}}
($JSP.1.13).
> Trim Spaces should not remove space between expressions
> -------------------------------------------------------
>
> Key: SLING-5441
> URL: https://issues.apache.org/jira/browse/SLING-5441
> Project: Sling
> Issue Type: Bug
> Components: Scripting
> Affects Versions: Scripting JSP 2.1.6
> Reporter: Konrad Windszus
>
> Currently if you have the following code in your JSP
> {code}
> ...
> <i class="coral-Icon <%= isMinimal ? "coral-MinimalButton-icon" : "" %> <%=
> cmp.getIconClass(icon) %> coral-Icon--size<%= iconSize %>"></i>
> ...
> {code}
> and the property {{jasper.trimSpaces}} is set to {{true}}, then the space
> between the first expression and the second expression is completely removed,
> leading to output like
> {code}
> <i class="coral-Icon coral-MinimalButton-iconcoral-Icon--close
> coral-Icon--sizeS"></i>
> {code}
> This should not happen as the space here obviously has a semantical meaning.
> With {{jasper.trimSpaces}} set to {{false}} the following correct code is
> generated:
> {code}
> <i class="coral-Icon coral-MinimalButton-icon coral-Icon--close
> coral-Icon--sizeS"></i>
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)