-
Notifications
You must be signed in to change notification settings - Fork 25
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
是否去除模板文件里面的html空格与换行 BUG修正 #13
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
think-template/src/Template.php
Line 415 in abfc293
问题描述:
在前面布局的时候,比如只需要一个空格的间距,通常不会用CSS样式去设置间距。例如两个A标签之间我只需要一个空格的间距,现在的情况是空格被全部替换了,导致两个A标签看起来像是一个A标签,因为A标签的默认样式被我用CSS初始化了。
修复前:
$replace = ['><', '>'];
修复后
$replace = ['> <', '>'];
The text was updated successfully, but these errors were encountered: