From a2662dc3657118ab01814125695c2ac09589114e Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Fri, 4 Sep 2015 21:29:55 +0200 Subject: [PATCH] Fix property drawer regexp * lisp/org.el (org-property-drawer-re): Make sure regexp doesn't expand past other drawers. --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 0b80e79f0..f3bb30a58 100755 --- a/lisp/org.el +++ b/lisp/org.el @@ -492,7 +492,7 @@ Group 1 contains drawer's name or \"END\".") (defconst org-property-drawer-re (concat "^[ \t]*:PROPERTIES:[ \t]*\n" - "\\(?:[ \t]*:\\S-+:\\(?: .*\\)?[ \t]*\n\\)*" + "\\(?:[ \t]*:\\S-+:\\(?: .*\\)?[ \t]*\n\\)*?" "[ \t]*:END:[ \t]*$") "Matches an entire property drawer.") -- 2.11.4.GIT