Trim content before returning InputFromEditor
This commit is contained in:
parent
bb895460ad
commit
1ac8f7d046
@ -46,5 +46,5 @@ func InputFromEditor(placeholder string, pattern string) (string, error) {
|
||||
}
|
||||
}
|
||||
|
||||
return content, nil
|
||||
return strings.Trim(content, "\n \t"), nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user