diff --git a/lisp/org-element.el b/lisp/org-element.el index 73b21ff9b..53499c06f 100644 --- a/lisp/org-element.el +++ b/lisp/org-element.el @@ -1915,7 +1915,7 @@ Assume point is at the beginning of the paragraph." "^[ \t]*#\\+END:?[ \t]*$" limit t))) ;; Stop at valid blocks. (and (looking-at - "[ \t]*#\\+BEGIN_\\(\\S-+\\)[ \t]*$") + "[ \t]*#\\+BEGIN_\\(\\S-+\\)") (save-excursion (re-search-forward (format "^[ \t]*#\\+END_%s[ \t]*$"