[FIX] website: space symbol is missing when compress html is enabled

Issue: when the qWeb compress rendered HTML for a better Google PageSpeed
result, some text fields are missing spacebar between fa icons and text,
and between some fields.
This commit is contained in:
Christophe Matthieu
2018-01-17 14:50:15 +01:00
parent 80f1d9ded6
commit 128656f6ea
+1 -1
View File
@@ -45,5 +45,5 @@ class QWeb(orm.AbstractModel):
compress = request and not request.debug and getattr(request, 'website', None) and request.website.compress_html
if compress and element.getparent().tag not in self.PRESERVE_WHITESPACE:
# No need to recurse because those tags children are not html5 parser friendly
tail = self.re_remove_spaces.sub(' ', tail.rstrip())
tail = self.re_remove_spaces.sub(' ', tail)
return super(QWeb, self).render_tail(tail, element, qwebcontext)