fix: remove trailing whitespace at the end of inline code
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Closes #2
This commit is contained in:
parent
61f7a1fb28
commit
1eadafd8e0
@ -91,7 +91,9 @@ ITEM is the parsed-org element with all properties."
|
|||||||
INPUT is either a \\='src-block\\=' or \\='example-block\\='
|
INPUT is either a \\='src-block\\=' or \\='example-block\\='
|
||||||
element. INFO is a plist."
|
element. INFO is a plist."
|
||||||
;; there's a bug here where there's a trailing space in the ``
|
;; 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)
|
(defun org-gemini-code-block (src-block _contents info)
|
||||||
"SRC-BLOCK is a codeblock. INFO is a plist."
|
"SRC-BLOCK is a codeblock. INFO is a plist."
|
||||||
|
Loading…
Reference in New Issue
Block a user