'Returns a formatted version of the data for final output.
This takes into consideration the
:attr:`~horizon.tables.Column.link`` and
:attr:`~horizon.tables.Column.empty_value`
attributes.'

@property
def value(self):

    try:
        data = self.column.get_data(self.datum)
        if (data is None):
            if callable(self.column.empty_value):
                data = self.column.empty_value(self.datum)
            else:
                data = self.column.empty_value
    except Exception:
        data = None
        exc_info = sys.exc_info()
        raise six.reraise(template.TemplateSyntaxError, exc_info[1], exc_info[2])
    if (self.url and (not (self.column.auto == 'form_field'))):
        link_attrs = '    '.join([('%s="%s"' % (k, v)) for (k, v) in self.column.link_attrs.items()])
        data = mark_safe(('<a    href="%s"    %s>%s</a>' % (escape(self.url), link_attrs, escape(six.text_type(data)))))
    return data
