Fix comma escaping with multiple leading commas
commit3aa4d44ba8e5a4d02fbc2ebcf3dc73b796a8780a
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Tue, 24 Oct 2017 07:51:43 +0000 (24 09:51 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Tue, 24 Oct 2017 07:51:43 +0000 (24 09:51 +0200)
tree0c68b9d12195b6788dd279844858e46d97f09c2a
parenta2a034f5b9088175c9fbcf034bc1094982ae739c
Fix comma escaping with multiple leading commas

* lisp/org-src.el (org-escape-code-in-region):
(org-escape-code-in-string):
(org-unescape-code-in-region):
(org-unescape-code-in-string): Fix comma escaping with multiple
leading commas.

* testing/lisp/test-org-src.el (test-org-src/escape-code-in-string):
(test-org-src/unescape-code-in-string): New tests.

Reported-by: Michal Politowski <mpol@meep.pl>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-10/msg00359.html>
lisp/org-src.el
testing/lisp/test-org-src.el