From 1eadafd8e0f9848bb0119076cab15f0b5b23ed0c Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Sun, 14 May 2023 13:34:37 +0200 Subject: [PATCH] fix: remove trailing whitespace at the end of inline code Closes #2 --- ox-gemini.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ox-gemini.el b/ox-gemini.el index 181c937..06e4a2b 100644 --- a/ox-gemini.el +++ b/ox-gemini.el @@ -91,7 +91,9 @@ ITEM is the parsed-org element with all properties." INPUT is either a \\='src-block\\=' or \\='example-block\\=' element. INFO is a plist." ;; there's a bug here where there's a trailing space in the `` - (format "`%s`" (org-export-format-code-default input info))) + (format "`%s`" (replace-regexp-in-string (rx (* whitespace) eot) + "" + (org-export-format-code-default input info)))) (defun org-gemini-code-block (src-block _contents info) "SRC-BLOCK is a codeblock. INFO is a plist."