Replace all newlines with the configured sequence in strings and template data.
(self, value: str)
| 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, |