MCPcopy
hub / github.com/SirVer/ultisnips / fill_in_whitespace

Function fill_in_whitespace

pythonx/UltiSnips/text.py:32–38  ·  view source on GitHub ↗

Returns 'text' with escaped whitespace replaced through whitespaces.

(text)

Source from the content-addressed store, hash-verified

30
31
32def fill_in_whitespace(text):
33 """Returns 'text' with escaped whitespace replaced through whitespaces."""
34 text = text.replace(r"\n", "\n")
35 text = text.replace(r"\t", "\t")
36 text = text.replace(r"\r", "\r")
37 text = text.replace(r"\a", "\a")
38 return text.replace(r"\b", "\b")
39
40
41def head_tail(line):

Callers 1

replaceMethod · 0.90

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected