MCPcopy
hub / github.com/django/django / normalize_newlines

Function normalize_newlines

django/utils/text.py:308–310  ·  view source on GitHub ↗

Normalize CRLF and CR newlines to just LF.

(text)

Source from the content-addressed store, hash-verified

306
307@keep_lazy_text
308def normalize_newlines(text):
309 """Normalize CRLF and CR newlines to just LF."""
310 return re_newlines.sub("\n", str(text))
311
312
313@keep_lazy_text

Callers 2

linebreaksFunction · 0.90
linebreaksbrFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected