You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replacing the usages of spaceless due to the deprecation, I was wondering what's the shortest way to remove spaces between two tags, and right now it seems to be {#--#}. I wonder if adding {#-#} as special operator for this would make sense? Or {-} even, I don't know. Just an idea..
The text was updated successfully, but these errors were encountered:
The issue is that {#-#} is already valid syntax, parsed as a comment using whitespace control on one of its side (probably on its left, but I haven't checked which side actually wins in practice).
Using {-} would be a huge BC break, as using it currently makes it part of the output of the template (it is not a Twig markup).
I think keeping {#--#} is probably the way to go here (or using {#-#} just before the second tag, so that there is no space to remove on the right)
Replacing the usages of
spaceless
due to the deprecation, I was wondering what's the shortest way to remove spaces between two tags, and right now it seems to be{#--#}
. I wonder if adding{#-#}
as special operator for this would make sense? Or{-}
even, I don't know. Just an idea..The text was updated successfully, but these errors were encountered: