aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2022-06-13 00:42:52 +0530
committerArun Isaac2022-06-13 00:42:52 +0530
commitd70b0db60691086ce7f82a5d5211d7a3217f5541 (patch)
treea34fae1b44e9738626e644b7eba381fae4143da8
parent58ca6663a851329645f1c1ed9e15104b006485a7 (diff)
downloadthogai-d70b0db60691086ce7f82a5d5211d7a3217f5541.tar.gz
thogai-d70b0db60691086ce7f82a5d5211d7a3217f5541.tar.lz
thogai-d70b0db60691086ce7f82a5d5211d7a3217f5541.zip
Insert space before prefix translations.
* thogai.el (thogai-insert-translation): Insert space before prefix translations if it is the first part of the translation.
-rw-r--r--thogai.el2
1 files changed, 2 insertions, 0 deletions
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))