0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-08-27 12:32:52 +00:00

Export: Fix regular expression for extracting drawers

Reported by Rainer Stengele.
This commit is contained in:
Carsten Dominik 2009-02-06 17:14:34 +01:00
parent 5f68200625
commit 6eed51c304
2 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2009-02-06 Carsten Dominik <carsten.dominik@gmail.com>
* org-exp.el (org-export-remove-or-extract-drawers): Fix regexp
for finding drawers.
* org.el (org-do-sort): Also take an inactive timestamp if no
active one is found.

View file

@ -1751,7 +1751,7 @@ whose content to keep."
(org-delete-all exp-drawers
(copy-sequence all-drawers))
"\\|")
"\\):[ \t]*\n\\([^@]*?\n\\)?[ \t]*:END:[ \t]*\n")))
"\\):[ \t]*\n\\([^\000]*?\n\\)?[ \t]*:END:[ \t]*\n")))
(while (re-search-forward re nil t)
(org-if-unprotected
(replace-match ""))))))