convert a list to tabs