Align columns: Difference between revisions
Content added Content deleted
(→{{header|Euphoria}}: Euphoria example added) |
m (→{{header|Go}}: library change) |
||
Line 1,030: | Line 1,030: | ||
func newFormatter(text string) *formatter { |
func newFormatter(text string) *formatter { |
||
var f formatter |
var f formatter |
||
for _, line := range strings.Split(text, "\n" |
for _, line := range strings.Split(text, "\n") { |
||
words := strings.Split(line, "$" |
words := strings.Split(line, "$") |
||
for words[len(words)-1] == "" { |
for words[len(words)-1] == "" { |
||
words = words[:len(words)-1] |
words = words[:len(words)-1] |