From dfda5fc8b4dde778683f8407d8db4e3a02b96098 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Mon, 15 Aug 2011 18:29:37 +0200 Subject: [PATCH] org-list: get correct structure with empty items * lisp/org-list.el (org-list-full-item-re): when an item has only a bullet and no space after it, list structure would not be recognized correctly. --- lisp/org-list.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/org-list.el b/lisp/org-list.el index 0164c9cf8..003ef1b72 100644 --- a/lisp/org-list.el +++ b/lisp/org-list.el @@ -385,9 +385,9 @@ specifically, type `block' is determined by the variable It depends on `org-empty-line-terminates-plain-lists'.") (defconst org-list-full-item-re - (concat "^[ \t]*\\(\\(?:[-+*]\\|\\(?:[0-9]+\\|[A-Za-z]\\)[.)]\\)[ \t]+\\)" + (concat "^[ \t]*\\(\\(?:[-+*]\\|\\(?:[0-9]+\\|[A-Za-z]\\)[.)]\\)\\(?:[ \t]+\\|$\\)\\)" "\\(?:\\[@\\(?:start:\\)?\\([0-9]+\\|[A-Za-z]\\)\\][ \t]*\\)?" - "\\(?:\\(\\[[ X-]\\]\\)[ \t]+\\)?" + "\\(?:\\(\\[[ X-]\\]\\)\\(?:[ \t]+\\|$\\)\\)?" "\\(?:\\(.*\\)[ \t]+::\\(?:[ \t]+\\|$\\)\\)?") "Matches a list item and puts everything into groups: group 1: bullet