[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ellama 2699ea2d85 2/3: Merge pull request #139 from s-k
From: |
ELPA Syncer |
Subject: |
[elpa] externals/ellama 2699ea2d85 2/3: Merge pull request #139 from s-kostyaev/avoid-unnesessary-newlines |
Date: |
Tue, 9 Jul 2024 09:57:57 -0400 (EDT) |
branch: externals/ellama
commit 2699ea2d856a363d92f0940eb90d8cc757025b15
Merge: 0ad2a8dfcb 26f90da7f2
Author: Sergey Kostyaev <s-kostyaev@users.noreply.github.com>
Commit: GitHub <noreply@github.com>
Merge pull request #139 from s-kostyaev/avoid-unnesessary-newlines
Prevent unnecessary line breaks at the end of generated text
---
ellama.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ellama.el b/ellama.el
index 1bfb3ed1be..0a51358e69 100644
--- a/ellama.el
+++ b/ellama.el
@@ -1310,7 +1310,7 @@ failure (with BUFFER current).
llm-prompt
insert-text
(lambda (text)
- (funcall insert-text text)
+ (funcall insert-text (string-trim text))
(with-current-buffer buffer
(accept-change-group ellama--change-group)
(spinner-stop)