Skip to content

Commit 3dc1cf4

Browse files
authored
gptel: tool block spacing changes (#735)
gptel.el (gptel--display-tool-results): Add missing newline after `#+end_tool' marker. This is part of a set of changes intended to fix whitespace handling around the insertion of tool result blocks in buffers.
1 parent c5ffae2 commit 3dc1cf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gptel.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -3118,7 +3118,7 @@ for tool call results. INFO contains the state of the request."
31183118
(propertize
31193119
(concat "\n" call "\n\n" (org-escape-code-in-string result))
31203120
'gptel `(tool . ,id))
3121-
"\n#+end_tool")
3121+
"\n#+end_tool\n")
31223122
;; TODO(tool) else branch is handling all front-ends as markdown.
31233123
;; At least escape markdown.
31243124
(concat

0 commit comments

Comments
 (0)