From 8a8230e0604a20234a30d49b297dd8dd0c8c7cd1 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Mon, 13 Jun 2022 00:43:35 +0530 Subject: Insert space before glue translations. * thogai.el (thogai-insert-translation): Insert space before glue translations if it is the first part of the translation. --- thogai.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))) -- cgit v1.2.3