Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit 97e2309

Browse files
author
Pierre GIRAUD
committed
Merge pull request #284 from pgiraud/markdown_br
Allow <p> tags in bleach clean. Fixes missing row breaks from markdown.
2 parents e2463c2 + 80fa35f commit 97e2309

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

osmtm/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import bleach
12
from pyramid.config import Configurator
23
from pyramid.authentication import AuthTktAuthenticationPolicy
34
from pyramid.authorization import ACLAuthorizationPolicy
@@ -136,4 +137,6 @@ def main(global_config, **settings):
136137

137138
config.scan(ignore=['osmtm.tests', 'osmtm.scripts'])
138139

140+
bleach.ALLOWED_TAGS.append(u'p')
141+
139142
return config.make_wsgi_app()

0 commit comments

Comments
 (0)