We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Smarty v3.1.32 had an undocumented breaking change for the {strip}-Block:
{strip}
{strip} <li>Code <- two spaces</li> {*<!-- Comment -->*} <li>Code</li> {/strip}
This Template would lead to the following HTML in Smarty v3.1.31:
<li>Code <- two spaces</li><li>Code</li>
All linebreaks and multiple whitespace at start or end would be removed.
With Smarty v3.1.32 there is additional whitespace:
<li>Code <- two spaces</li> <li>Code</li>
This can break a lot of templates for menus, if they rely on the missing whitespace between the li-tags.
Just a note: If the comment is removed or there is an additional linebreak after the comment, everything works fine.
The text was updated successfully, but these errors were encountered:
- bugfix strip-block produces different output in Smarty v3.1.32 #436
cc4d8fa
The fix is now in the master branch and will later be included in 3.1.33
Sorry, something went wrong.
Was this included in 3.1.33?
{strip} {* Evaluate and output header template *} <?xml version="1.0"?><rss version ="2.0" xmlns:g="http://base.google.com/ns/1.0"> <item> <description>...</description> </item> {/strip}
Produces:
3.1.31:
<?xml version="1.0"?><rss version ="2.0" xmlns:g="http://base.google.com/ns/1.0"><item><description>...</description></item>
3.1.33:
Notice the leading tab. If I remove the comment from the template there is no leading tab.
No branches or pull requests
Smarty v3.1.32 had an undocumented breaking change for the
{strip}
-Block:This Template would lead to the following HTML in Smarty v3.1.31:
All linebreaks and multiple whitespace at start or end would be removed.
With Smarty v3.1.32 there is additional whitespace:
This can break a lot of templates for menus, if they rely on the missing whitespace between the li-tags.
Just a note: If the comment is removed or there is an additional linebreak after the comment, everything works fine.
The text was updated successfully, but these errors were encountered: