def _render_cell(self, row, column, cell_format):
        """
        Renders table cell with padding.

        :param row: The row to render
        :type: row: list

        :param column: The column to render

        :param cell_format: The cell format
        :type cell_format: str
        """
        try:
            cell = row[column]
        except __HOLE__:
            cell = ''

        width = self._column_widths[column]
        if isinstance(cell, TableCell) and cell.colspan > 1:
            # add the width of the following columns(numbers of colspan).
            for next_column in range(column + 1, column + cell.colspan):
                width += self._get_column_separator_width() + self._column_widths[next_column]

        # Encoding fix
        width += len(cell) - Helper.len(cell)

        style = self.get_column_style(column)

        if isinstance(cell, TableSeparator):
            self._output.write(style.border_format % (style.horizontal_border_char * width))
        else:
            width += Helper.len(cell) - Helper.len_without_decoration(self._output.get_formatter(), cell)
            content = style.cell_row_content_format % cell
            self._output.write(cell_format % getattr(content, style.pad_type)(width, style.padding_char))
dataset/ETHPy150Open sdispater/cleo/cleo/helpers/table.py/Table._render_cell