Browse Source

worksthesame

master
Jacob 3 years ago
parent
commit
e60eb56b8d
  1. 6
      main.go

6
main.go

@ -25,7 +25,6 @@ func main() {
for j := 0; j < len(args); j++ { for j := 0; j < len(args); j++ {
hasNewLine = false hasNewLine = false
if args[j] == '\\' && args[j+1] == 'n' { if args[j] == '\\' && args[j+1] == 'n' {
// fmt.Println()
newlinePos = append(newlinePos, j) newlinePos = append(newlinePos, j)
hasNewLine = true hasNewLine = true
@ -38,11 +37,10 @@ func main() {
fmt.Println() fmt.Println()
} }
} }
// fmt.Println()
if i == 7 { if i == 7 {
if hasNewLine == true { if hasNewLine == true {
fmt.Println() i = -1
i = 0
hasNewLine = false hasNewLine = false
args = args[newlinePos[loopCount*8]+2:] args = args[newlinePos[loopCount*8]+2:]
loopCount++ loopCount++

Loading…
Cancel
Save