def getTable_Wrap(self, data, wrapStyle, header=None, width=65):
        wrapper = None
        if len(wrapStyle) > 1:
            rows = self.getAsRows(data)
            if header is not None:
                hRows = [header] + rows
            else:
                hRows = rows

            for wrapper in (self.oTable.wrap_always,
                            self.oTable.wrap_onspace,
                            self.oTable.wrap_onspace_strict):
                return self.oTable.wrapTable(hRows, hasHeader=True, separateRows=True, prefix='| ', postfix=' |', wrapfunc=lambda x:
                                             wrapper(x, width))
        else:
            return self.getTable_noWrap(data, header)
dataset/ETHPy150Open uwdata/termite-visualizations/web2py/scripts/cpdb.py/tableHelper.getTable_Wrap/original