mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-07 21:51:14 -07:00
Strip white characters from notification subject and body
This commit is contained in:
parent
ca472ff597
commit
00ff9c5736
1 changed files with 2 additions and 2 deletions
|
@ -599,8 +599,8 @@ def build_notify_text(subject='', body='', notify_action=None, parameters=None,
|
|||
pattern = re.compile(all_tags, re.IGNORECASE | re.DOTALL)
|
||||
|
||||
# Remove the unwanted tags and strip any unmatch tags too.
|
||||
subject = strip_tag(re.sub(pattern, '', subject), agent_id)
|
||||
body = strip_tag(re.sub(pattern, '', body), agent_id)
|
||||
subject = strip_tag(re.sub(pattern, '', subject), agent_id).strip(' \t\n\r')
|
||||
body = strip_tag(re.sub(pattern, '', body), agent_id).strip(' \t\n\r')
|
||||
|
||||
if test:
|
||||
return subject, body
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue