MCPcopy Index your code
hub / github.com/clips/pattern / add

Method add

pattern/web/pdf/layout.py:349–356  ·  view source on GitHub ↗
(self, obj)

Source from the content-addressed store, hash-verified

347 return
348
349 def add(self, obj):
350 if isinstance(obj, LTChar) and self.word_margin:
351 margin = self.word_margin * obj.width
352 if self._x1 < obj.x0-margin:
353 LTContainer.add(self, LTAnon(' '))
354 self._x1 = obj.x1
355 LTTextLine.add(self, obj)
356 return
357
358 def find_neighbors(self, plane, ratio):
359 h = ratio*self.height

Callers 1

get_textlinesMethod · 0.95

Calls 2

LTAnonClass · 0.85
addMethod · 0.45

Tested by

no test coverage detected