Skip to content

Commit

Permalink
squash 169 - clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
kalbfled committed Dec 17, 2024
1 parent 0c8eb46 commit 7a84fa2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions notifications_utils/formatters.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,10 @@
multiple_newlines = re.compile(r'((\n)\2{2,})')


# TODO - Delete this? I would expect Mistune to handle this.
def nl2br(value):
return re.sub(r'\n|\r', '<br>', value.strip())


# TODO - Delete this? I would expect Mistune to handle this.
def nl2li(value):
return '<ul><li>{}</li></ul>'.format('</li><li>'.join(
value.strip().split('\n')
Expand Down

0 comments on commit 7a84fa2

Please sign in to comment.