Ver Fonte

Strip return characters when removing line breaks

Jeremy Stretch há 7 anos atrás
pai
commit
14695037da
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      netbox/utilities/templatetags/helpers.py

+ 1 - 0
netbox/utilities/templatetags/helpers.py

@@ -22,6 +22,7 @@ def oneline(value):
     """
     Replace each line break with a single space
     """
+    value = value.replace('\r', '')
     return value.replace('\n', ' ')