Browse Source

ox-texinfo: Do not consider :sep value as a regexp

* lisp/ox-texinfo.el (org-texinfo-item): Do not consider :sep value as
  a regexp.
Nicolas Goaziou 7 years ago
parent
commit
c5bb67ef60
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lisp/ox-texinfo.el

+ 2 - 1
lisp/ox-texinfo.el

@@ -933,7 +933,8 @@ contextual information."
 					    :sep)))
 	 (items (and tag
 		     (let ((tag (org-export-data tag info)))
-		       (if split (split-string tag split t "[ \t\n]+")
+		       (if split
+			   (split-string tag (regexp-quote split) t "[ \t\n]+")
 			 (list tag))))))
     (format "%s\n%s"
 	    (pcase items