MCPcopy Create free account
hub / github.com/scanny/python-pptx / _xml

Method _xml

tests/unitutil/cxml.py:169–179  ·  view source on GitHub ↗

Return a string containing the XML of this element and all its children with a starting indent of *indent* spaces.

(self, indent)

Source from the content-addressed store, hash-verified

167 return self._xml(indent=0)
168
169 def _xml(self, indent):
170 """
171 Return a string containing the XML of this element and all its
172 children with a starting indent of *indent* spaces.
173 """
174 self._indent_str = " " * indent
175 xml = self._start_tag
176 for child in self._children:
177 xml += child._xml(indent + 2)
178 xml += self._end_tag
179 return xml
180
181 @property
182 def _start_tag(self):

Callers 1

xmlMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected