code: def _get_row_within_width(self, row):
          
          table = self._table
          lpw, rpw = table.left_padding_widths, table.right_padding_widths
          wep = table.width_exceed_policy
  
          list_of_rows = []
  
          if (wep is WidthExceedPolicy.WEP_STRIP or
                  wep is WidthExceedPolicy.WEP_ELLIPSIS):
  
              # Let's strip the row
              delimiter = '' if wep is WidthExceedPolicy.WEP_STRIP else '...'
              row_item_list = []
              for index, row_item in enumerate(row):
                  left_pad = table._column_pad * lpw[index]
                  right_pad = table._column_pad * rpw[index]
                  clmp_str = (left_pad
                              + self._clamp_string(row_item, index, delimiter)
                              + right_pad)
                  row_item_list.append(clmp_str)
              list_of_rows.append(row_item_list)
          elif wep is WidthExceedPolicy.WEP_WRAP:
  
              # Let's wrap the row
              string_partition = []
  
              for index, row_item in enumerate(row):
                  width = table.column_widths[index] - lpw[index] - rpw[index]
                  string_partition.append(textwrap(row_item, width))
  
              for row_items in zip_longest(*string_partition, fillvalue=''):
                  row_item_list = []
                  for index, row_item in enumerate(row_items):
                      left_pad = table._column_pad * lpw[index]
                      right_pad = table._column_pad * rpw[index]
                      row_item_list.append(left_pad + row_item + right_pad)
                  list_of_rows.append(row_item_list)
  
          if len(list_of_rows) == 0:
              return [[''] * table.column_count]
          else:
              return list_of_rows
docs: Process a row so that it is clamped by column_width.
  
          Parameters
          ----------
          row : array_like
               A single row.
  
          Returns
          -------
          list of list:
              List representation of the `row` after it has been processed
              according to width exceed policy.