code: def save_tsv(p, vs):
      'Write sheet to file `fn` as TSV.'
      delim = options.get('delimiter', vs)
      trdict = tsv_trdict(vs)
  
      save_tsv_header(p, vs)
  
      with p.open_text(mode='a') as fp:
          for dispvals in genAllValues(vs.rows, vs.visibleCols, trdict, format=True):
              fp.write(delim.join(dispvals))
              fp.write('\n')
  
      status('%s save finished' % pf save_tsv(p, vs):
      'Write sheet to file `fn` as TSV.'
      delim = options.get('delimiter', vs)
      trdict = tsv_trdict(vs)
  
      save_tsv_header(p, vs)
  
      with p.open_text(mode='a') as fp:
          for dispvals in genAllValues(vs.rows, vs.visibleCols, trdict, format=True):
              fp.write(delim.join(dispvals))
              fp.write('\n')
  
      status('%s save finished' % p)
docs: Write sheet to file `fn` as TSV.