MCPcopy Create free account
hub / github.com/PageBot/PageBot / append

Method append

Lib/pagebot/elements/text.py:399–407  ·  view source on GitHub ↗

Appends to the current BabelString instance self.bs.

(self, bs, style=None)

Source from the content-addressed store, hash-verified

397 return e
398
399 def append(self, bs, style=None):
400 """Appends to the current BabelString instance self.bs."""
401 if not isinstance(bs, BabelString):
402 bs = BabelString(str(bs), style, context=self.context)
403 if self.bs is None:
404 self.bs = bs
405 else:
406 self.bs += bs
407 self._textLines = None # Force new rendering on self.textLines call.
408
409 def appendMarker(self, markerId, arg=None):
410 """Appends a marker at the end of the last BabelString.runs[-1].

Callers 15

constants.pyFile · 0.45
_get_partNamesMethod · 0.45
getContextsFunction · 0.45
getAllContextsFunction · 0.45
__setitem__Method · 0.45
getGlossaryMethod · 0.45
findPagesMethod · 0.45
getSortedPagesMethod · 0.45
__repr__Method · 0.45
getNodeMethod · 0.45
addPageNodeMethod · 0.45
addScoreMethod · 0.45

Calls 1

BabelStringClass · 0.90

Tested by

no test coverage detected