Skip to content

Commit cd14d95

Browse files
committed
Added a filter which lets an email address break before the at-sign.
- Legacy-Id: 9493
1 parent bcef133 commit cd14d95

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

ietf/doc/templatetags/ietf_filters.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,3 +585,8 @@ def urlize_html(html, autoescape=False):
585585
textNode.replaceWith(BeautifulSoup(urlizedText))
586586

587587
return str(soup)
588+
589+
@register.filter
590+
def emailwrap(email):
591+
email = str(email)
592+
return mark_safe(email.replace('@', '<wbr>@'))

0 commit comments

Comments
 (0)