org-babel-expand-body:gnuplot: Fix altering variable data case
* lisp/ob-gnuplot.el (org-babel-expand-body:gnuplot): Pass FIXEDCASE and LITERAL arguments to `replace-regexp-in-string'. This prevents it from "smartly" altering the replacement text case when the variable name is upcased like $C or $FOO; and from interpreting \N constructs. Reported-by: Paul Stansell <paulstansell@gmail.com> Link: https://orgmode.org/list/CAMJKaZyH0ZwaitHxCTdd2ZGMKOZtVCvwVf_OEuRe9crPbqG9jA@mail.gmail.com
This commit is contained in:
parent
8648576573
commit
01a0f15b6b
|
@ -186,7 +186,7 @@ code."
|
|||
;; value of the variable
|
||||
(mapc (lambda (pair)
|
||||
(setq body (replace-regexp-in-string
|
||||
(format "\\$%s" (car pair)) (cdr pair) body)))
|
||||
(format "\\$%s" (car pair)) (cdr pair) body t t)))
|
||||
vars)
|
||||
(when prologue (funcall add-to-body prologue))
|
||||
(when epilogue (setq body (concat body "\n" epilogue)))
|
||||
|
|
Loading…
Reference in New Issue