MCPcopy
hub / github.com/pallets/jinja / _normalize_newlines

Method _normalize_newlines

src/jinja2/lexer.py:598–602  ·  view source on GitHub ↗

Replace all newlines with the configured sequence in strings and template data.

(self, value: str)

Source from the content-addressed store, hash-verified

596 }
597
598 def _normalize_newlines(self, value: str) -> str:
599 """Replace all newlines with the configured sequence in strings
600 and template data.
601 """
602 return newline_re.sub(self.newline_sequence, value)
603
604 def tokenize(
605 self,

Callers 1

wrapMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected