File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66import types
77from email .utils import parseaddr
88
9+ import debug # pyflakes:ignore
10+
911from ietf .doc .models import ConsensusDocEvent
1012from django import template
1113from django .conf import settings
@@ -458,7 +460,7 @@ def format_history_text(text, trunc_words=25):
458460
459461@register .filter
460462def format_snippet (text , trunc_words = 25 ):
461- full = mark_safe ( keep_spacing (collapsebr (linebreaksbr (urlize (sanitize_html (text ))))))
463+ full = keep_spacing (collapsebr (linebreaksbr (mark_safe (sanitize_html ( urlize (text ))))))
462464 snippet = truncatewords_html (full , trunc_words )
463465 if snippet != full :
464466 return mark_safe (u'<div class="snippet">%s<button class="btn btn-xs btn-default show-all"><span class="fa fa-caret-down"></span></button></div><div class="hidden full">%s</div>' % (snippet , full ))
You can’t perform that action at this time.
0 commit comments