Skip to content

Commit

Permalink
Merge pull request #389 from pterm/376-interactivetextinput-misses-a-…
Browse files Browse the repository at this point in the history
…new-line

Fixed no newline on `TextinputPrinter`
  • Loading branch information
MarvinJWendt committed Aug 22, 2022
2 parents e373573 + 0b7b060 commit b0c3804
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions interactive_textinput_printer.go
Expand Up @@ -181,6 +181,9 @@ func (p *InteractiveTextInputPrinter) Show(text ...string) (string, error) {
return "", err
}

// Add new line
Println()

for i, s := range p.input {
if i < len(p.input)-1 {
areaText += s + "\n"
Expand Down

0 comments on commit b0c3804

Please sign in to comment.