def parse_index(self, field, parse_func, log): if not field.contents: return idx = parse_func(field.instructions, log) hyperlinks, blocks = process_index(field, idx, self.xe_fields, log) for anchor, run in hyperlinks: self.hyperlink_fields.append(({'anchor': anchor}, [run])) self.index_fields.append((idx, blocks))
def parse_index(self, field, parse_func, log): if not field.contents: return idx = parse_func(field.instructions, log) hyperlinks, blocks = process_index(field, idx, self.xe_fields, log) for anchor, run in hyperlinks: self.hyperlink_fields.append(({'anchor':anchor}, [run])) self.index_fields.append((idx, blocks))