add multi line strings to final prompt
This commit is contained in:
parent
9b12a511ca
commit
01c44d687e
1 changed files with 1 additions and 0 deletions
|
@ -581,6 +581,7 @@ func generateInteractive(cmd *cobra.Command, model string) error {
|
|||
isMultiLine = false
|
||||
painter.HideHint = false
|
||||
multiLineBuffer += strings.TrimSuffix(line, `"""`)
|
||||
line = multiLineBuffer
|
||||
multiLineBuffer = ""
|
||||
scanner.SetPrompt(">>> ")
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue