diff options
-rw-r--r-- | thogai.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/thogai.el b/thogai.el index a893c80..44c1716 100644 --- a/thogai.el +++ b/thogai.el @@ -263,10 +263,10 @@ External callers should always pass nil as the value." ((pred (lambda (str) (and (string-prefix-p "{&" str) (string-suffix-p "}" str)))) - (unless (or non-first-part-p thogai-glue) - (thogai-insert-space)) - (thogai-insert-literal - (string-remove-prefix "{&" (string-remove-suffix "}" translation))) + (thogai-insert-translation + (concat (if thogai-glue "{^}" "") + (string-remove-prefix "{&" (string-remove-suffix "}" translation))) + non-first-part-p) (setq thogai-glue t)) ;; Period, question mark or exclamation mark ((or "{.}" "{?}" "{!}") |