summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <n.goaziou@gmail.com>2011-08-15 18:29:37 +0200
committerNicolas Goaziou <n.goaziou@gmail.com>2011-08-15 18:29:37 +0200
commitdfda5fc8b4dde778683f8407d8db4e3a02b96098 (patch)
tree2a5eb2b71e5d7d1a1906958a1eb5548d636f4532
parentbdf9f969156af2d82669352341f376f44547e497 (diff)
downloadorg-mode-dfda5fc8b4dde778683f8407d8db4e3a02b96098.tar.gz
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.
-rw-r--r--lisp/org-list.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/org-list.el b/lisp/org-list.el
index 0164c9c..003ef1b 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