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

Method _wrap_lines

src/pptx/text/layout.py:106–116  ·  view source on GitHub ↗

Return a sequence of str values representing the text in *line_source* wrapped within this fitter when rendered at *point_size*.

(self, line_source, point_size)

Source from the content-addressed store, hash-verified

104 return self[1]
105
106 def _wrap_lines(self, line_source, point_size):
107 """
108 Return a sequence of str values representing the text in
109 *line_source* wrapped within this fitter when rendered at
110 *point_size*.
111 """
112 text, remainder = self._break_line(line_source, point_size)
113 lines = [text]
114 if remainder:
115 lines.extend(self._wrap_lines(remainder, point_size))
116 return lines
117
118
119class _BinarySearchTree(object):

Callers 2

predicateMethod · 0.95

Calls 1

_break_lineMethod · 0.95

Tested by 1