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

Method add

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

Source from the content-addressed store, hash-verified

368 return
369
370 def add(self, obj):
371 if isinstance(obj, LTChar) and self.word_margin:
372 margin = self.word_margin * obj.height
373 if obj.y1+margin < self._y0:
374 LTContainer.add(self, LTAnon(' '))
375 self._y0 = obj.y0
376 LTTextLine.add(self, obj)
377 return
378
379 def find_neighbors(self, plane, ratio):
380 w = ratio*self.width

Callers

nothing calls this directly

Calls 2

LTAnonClass · 0.85
addMethod · 0.45

Tested by

no test coverage detected