def _refactor_attributes(self, header):

        if self.verbose:
            print '{0} Section'.format(header)

        index = self.index
        self.remove_lines(index, 2)
        indent = get_indent(self.peek())
        fields = self.extract_fields(indent, AttributeField)
        header = fix_backspace(header)
        lines = [indent + ':{0}:'.format(header), '']
        for field in fields:
            lines += field.to_rst(len(indent) + 4)
        self.insert_lines(lines[:-1], index)
        self.index += len(lines)
        return
Refactor the attributes section to sphinx friendly format
dataset/ETHPy150Open ContinuumIO/ashiba/enaml/docs/source/sphinxext/refactordoc/enaml_decl_doc.py/EnamlDeclDoc._refactor_attributes