def build_styled_text(self): # TODO: what about refid? try: destination = rt.NamedDestination(*self._ids) return rt.AnnotatedText(self.process_content(), destination) except IndexError: return self.process_content() # TODO: use refname?
def build_styled_text(self): content = self.process_content() ids = self.get('ids') if ids: # TODO: add destination for each id destination = rt.NamedDestination(ids[0]) content = rt.AnnotatedText(content, destination) return content
def build_styled_text(self): # TODO: what about refid? content = self.process_content() try: content.annotation = rt.NamedDestination(*self._ids) except IndexError: pass return content
def build_styled_text(self): content = self.process_content() if self._ids: destination = rt.NamedDestination(*self._ids) content = rt.AnnotatedText(content, destination) return content
def build_styled_text(self): content = self.process_content() if self._ids: content.annotation = rt.NamedDestination(*self._ids) return content