fix: remove trailing whitespace at the end of inline code
continuous-integration/drone/push Build is passing Details

Closes #2
This commit is contained in:
Lucien Cartier-Tilet 2023-05-14 13:34:37 +02:00
parent 61f7a1fb28
commit 1eadafd8e0
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
1 changed files with 3 additions and 1 deletions

View File

@ -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."