Explorar el Código

Strip return characters when removing line breaks

Jeremy Stretch hace 7 años
padre
commit
14695037da
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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', ' ')