diff --git a/browser/common.py b/browser/common.py index 076c23c..a7cecb9 100644 --- a/browser/common.py +++ b/browser/common.py @@ -495,7 +495,7 @@ class BaseView(GenericView, I18NView): if text is None: return u'' htmlPattern = re.compile(r'<(.+)>.+') - if htmlPattern.search(text): + if '
' in text or htmlPattern.search(text): return text return self.renderText(text, 'text/restructured')