MCPcopy Create free account
hub / github.com/EasyIME/PIME / generate

Method generate

python/python3/tornado/template.py:688–697  ·  view source on GitHub ↗
(self, writer: "_CodeWriter")

Source from the content-addressed store, hash-verified

686 self.whitespace = whitespace
687
688 def generate(self, writer: "_CodeWriter") -> None:
689 value = self.value
690
691 # Compress whitespace if requested, with a crude heuristic to avoid
692 # altering preformatted whitespace.
693 if "<pre>" not in value:
694 value = filter_whitespace(self.whitespace, value)
695
696 if value:
697 writer.write_line("_tt_append(%r)" % escape.utf8(value), self.line)
698
699
700class ParseError(Exception):

Callers

nothing calls this directly

Calls 2

filter_whitespaceFunction · 0.85
write_lineMethod · 0.80

Tested by

no test coverage detected