瀏覽代碼

org-element: Fix parsing of inlinetasks within lists

* lisp/org-element.el (org-element--list-struct): Fix regexp.
Nicolas Goaziou 11 年之前
父節點
當前提交
4298a21b82
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lisp/org-element.el

+ 1 - 1
lisp/org-element.el

@@ -1225,7 +1225,7 @@ CONTENTS is the contents of the element."
 	    (forward-line)
 	    (let ((origin (point)))
 	      (when (re-search-forward inlinetask-re limit t)
-		(if (looking-at "^\\*+ END[ \t]*$") (forward-line)
+		(if (org-looking-at-p "END[ \t]*$") (forward-line)
 		  (goto-char origin)))))
 	   ;; At some text line.  Check if it ends any previous item.
 	   (t