def build_styled_text(self): baseline = self.ALIGN_TO_BASELINE.get(self.get('align')) return rt.InlineImage(self.image_path, baseline=baseline)
def build_styled_text(self): return rt.InlineImage(self.image_path)