mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-27 10:58:37 -06:00
Strip return characters when removing line breaks
This commit is contained in:
parent
1c9f8868c2
commit
b2faf98c94
@ -22,6 +22,7 @@ def oneline(value):
|
|||||||
"""
|
"""
|
||||||
Replace each line break with a single space
|
Replace each line break with a single space
|
||||||
"""
|
"""
|
||||||
|
value = value.replace('\r', '')
|
||||||
return value.replace('\n', ' ')
|
return value.replace('\n', ' ')
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user