MCPcopy
hub / github.com/scrapy/scrapy / _beautify_newline

Method _beautify_newline

scrapy/exporters.py:176–178  ·  view source on GitHub ↗
(self, new_item: bool = False)

Source from the content-addressed store, hash-verified

174 self.xg = XMLGenerator(file, encoding=self.encoding)
175
176 def _beautify_newline(self, new_item: bool = False) -> None:
177 if self.indent is not None and (self.indent > 0 or new_item):
178 self.xg.characters("\n")
179
180 def _beautify_indent(self, depth: int = 1) -> None:
181 if self.indent:

Callers 3

start_exportingMethod · 0.95
export_itemMethod · 0.95
_export_xml_fieldMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected