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