Merge branch 'bugfix'

This commit is contained in:
Ihor Radchenko 2023-03-19 14:06:34 +01:00
commit a645a6d679
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 7 additions and 4 deletions

View File

@ -2037,10 +2037,13 @@ Once computed, the results remain cached."
"\n"))) "\n")))
(with-temp-file input-file (with-temp-file input-file
(insert input-content)) (insert input-content))
(let* ((output-file (org-texinfo-compile input-file)) (when-let* ((output-file
(output-content (with-temp-buffer ;; If compilation fails, consider math to
(insert-file-contents output-file) ;; be not supported.
(buffer-string)))) (ignore-errors (org-texinfo-compile input-file)))
(output-content (with-temp-buffer
(insert-file-contents output-file)
(buffer-string))))
(let ((result (string-match-p (regexp-quote math-example) (let ((result (string-match-p (regexp-quote math-example)
output-content))) output-content)))
(delete-file input-file) (delete-file input-file)