mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-04 15:41:37 -05:00
Ignore ANSI escapes when testing some Org source blocks
This commit is contained in:
parent
a2cbebdfda
commit
db450a9f44
1 changed files with 4 additions and 1 deletions
|
@ -549,7 +549,10 @@ results instead of an equality match."
|
|||
(let ((result (buffer-substring-no-properties
|
||||
(jupyter-org-element-begin-after-affiliated element)
|
||||
(org-element-property :end element))))
|
||||
(if regexp (should (string-match-p test-result result))
|
||||
(if regexp (should (string-match-p
|
||||
test-result
|
||||
;; Ignore ANSI escapes for regexp matching.
|
||||
(ansi-color-apply result)))
|
||||
(message "\
|
||||
|
||||
Testing src-block:
|
||||
|
|
Loading…
Add table
Reference in a new issue