Trim space when generating title
This commit is contained in:
parent
1bd953676d
commit
b82f3019f0
@ -186,6 +186,7 @@ Title: A brief introduction
|
|||||||
|
|
||||||
response = strings.TrimPrefix(response, "Title: ")
|
response = strings.TrimPrefix(response, "Title: ")
|
||||||
response = strings.Trim(response, "\"")
|
response = strings.Trim(response, "\"")
|
||||||
|
response = strings.TrimSpace(response)
|
||||||
|
|
||||||
return response, nil
|
return response, nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user