Skip to content

Commit

Permalink
Remove whitespace around substrings before concatenation (agda#6954)
Browse files Browse the repository at this point in the history
This is a workaround for agda#6953.

Fixes agda#6953
  • Loading branch information
kutsurak authored and JobPetrovcic committed Apr 12, 2024
1 parent 9eb0745 commit 611c59e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/data/emacs-mode/agda2-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -1649,7 +1649,12 @@ text properties."
(error "no process")))

(defun agda2-intersperse (sep xs)
(let(ys)(while xs (push (pop xs) ys)(push sep ys))(pop ys)(nreverse ys)))
(let (ys)
(while xs
(push (string-trim (pop xs)) ys)
(push sep ys))
(pop ys)
(nreverse ys)))

(defun agda2-goal-Range (o)
"The Haskell Range of goal overlay O."
Expand Down

0 comments on commit 611c59e

Please sign in to comment.