fix rendering of description if it only contains a br tag
This commit is contained in:
parent
a411cf654f
commit
e4222d7567
1 changed files with 1 additions and 1 deletions
|
@ -495,7 +495,7 @@ class BaseView(GenericView, I18NView):
|
||||||
if text is None:
|
if text is None:
|
||||||
return u''
|
return u''
|
||||||
htmlPattern = re.compile(r'<(.+)>.+</\1>')
|
htmlPattern = re.compile(r'<(.+)>.+</\1>')
|
||||||
if htmlPattern.search(text):
|
if '<br />' in text or htmlPattern.search(text):
|
||||||
return text
|
return text
|
||||||
return self.renderText(text, 'text/restructured')
|
return self.renderText(text, 'text/restructured')
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue