From d70b0db60691086ce7f82a5d5211d7a3217f5541 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Mon, 13 Jun 2022 00:42:52 +0530 Subject: Insert space before prefix translations. * thogai.el (thogai-insert-translation): Insert space before prefix translations if it is the first part of the translation. --- thogai.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/thogai.el b/thogai.el index bc69eb7..2bd3b71 100644 --- a/thogai.el +++ b/thogai.el @@ -236,6 +236,8 @@ callers should never pass non-nil SUBTRANSLATION." ;; Prefix ((pred (lambda (str) (string-suffix-p "^}" str))) + (unless subtranslation + (thogai-insert-space)) (thogai-insert-literal (string-remove-prefix "{" (string-remove-suffix "^}" translation))) (setq thogai-attach-next t)) -- cgit v1.2.3