aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2022-06-13 00:43:35 +0530
committerArun Isaac2022-06-13 00:43:35 +0530
commit8a8230e0604a20234a30d49b297dd8dd0c8c7cd1 (patch)
tree57199e1d290eae720f198fe5b03eeee26aefbba2
parentd70b0db60691086ce7f82a5d5211d7a3217f5541 (diff)
downloadthogai-8a8230e0604a20234a30d49b297dd8dd0c8c7cd1.tar.gz
thogai-8a8230e0604a20234a30d49b297dd8dd0c8c7cd1.tar.lz
thogai-8a8230e0604a20234a30d49b297dd8dd0c8c7cd1.zip
Insert space before glue translations.
* thogai.el (thogai-insert-translation): Insert space before glue translations if it is the first part of the translation.
-rw-r--r--thogai.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/thogai.el b/thogai.el
index 2bd3b71..60f25ef 100644
--- a/thogai.el
+++ b/thogai.el
@@ -245,7 +245,7 @@ callers should never pass non-nil SUBTRANSLATION."
((pred (lambda (str)
(and (string-prefix-p "{&" str)
(string-suffix-p "}" str))))
- (unless thogai-glue
+ (unless (or subtranslation thogai-glue)
(thogai-insert-space))
(thogai-insert-literal
(string-remove-prefix "{&" (string-remove-suffix "}" translation)))