adding commented out code which should be activated once org-element has been merged
Used to clean up orphaned keywords of blocks removed by org-export-blocks-preprocess.
This commit is contained in:
parent
72ca00ca09
commit
dec32064a7
|
@ -208,6 +208,12 @@ which defaults to the value of `org-export-blocks-witheld'."
|
|||
(let ((replacement (save-match-data
|
||||
(if (memq type org-export-blocks-witheld) ""
|
||||
(apply func body headers)))))
|
||||
;; ;; un-comment this code after the org-element merge
|
||||
;; (save-match-data
|
||||
;; (when (and replacement (string= replacement ""))
|
||||
;; (delete-region
|
||||
;; (car (org-element-collect-affiliated-keyword))
|
||||
;; match-start)))
|
||||
(when replacement
|
||||
(delete-region match-start match-end)
|
||||
(goto-char match-start) (insert replacement)
|
||||
|
|
Loading…
Reference in New Issue