mirror of
https://github.com/maubot/maubot
synced 2025-08-29 22:20:40 +00:00
Small fixes
This commit is contained in:
parent
3a27831112
commit
feaf75b327
5 changed files with 53 additions and 29 deletions
|
@ -41,7 +41,7 @@ func TrimReplyFallbackText(text string) string {
|
|||
for len(lines) > 0 && strings.HasPrefix(lines[0], "> ") {
|
||||
lines = lines[1:]
|
||||
}
|
||||
return strings.Join(lines, "\n")
|
||||
return strings.TrimSpace(strings.Join(lines, "\n"))
|
||||
}
|
||||
|
||||
func RemoveReplyFallback(evt *maubot.Event) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue