gherkin/types.go
func (s StringData) ToTable() TabularData {
	var tabData TabularData
	lines := strings.Split(string(s), "\n")
	for _, line := range lines {
		row := strings.Split(line, "|")
		row = row[1 : len(row)-1]
		for i, c := range row {
			row[i] = strings.TrimSpace(c)
		}
		tabData = append(tabData, row)
	}
	return tabData
}
func (s StringData) ToTable() TabularData {
	var tabData TabularData
	lines := strings.Split(string(s), "\n")
	for _, line := range lines {
		row := strings.Split(line, "|")
		row = row[1 : len(row)-1]
		for i, c := range row {
			row[i] = strings.TrimSpace(c)
		}
		tabData = append(tabData, row)
	}
	return tabData
}
// ToTable turns StringData type into a TabularData type