mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-23 16:48:45 +00:00
exp: strip protective commas from literal code blocks
* lisp/org-exp.el (org-export-select-backend-specific-text): Strip protective commas from literal code blocks.
This commit is contained in:
parent
cb67a439b1
commit
20044297a4
|
@ -1708,6 +1708,12 @@ from the buffer."
|
|||
(add-text-properties
|
||||
beg-content end-content
|
||||
`(org-protected t original-indentation ,ind org-native-text t))
|
||||
;; strip protective commas
|
||||
(save-excursion
|
||||
(save-match-data
|
||||
(goto-char beg-content)
|
||||
(while (re-search-forward "^[ \t]*\\(,\\)" end-content t)
|
||||
(replace-match "" nil nil nil 1))))
|
||||
(delete-region (match-beginning 0) (match-end 0))
|
||||
(save-excursion
|
||||
(goto-char beg)
|
||||
|
|
Loading…
Reference in a new issue