diff options
author | Nicolas Goaziou <n.goaziou@gmail.com> | 2011-08-15 18:29:37 +0200 |
---|---|---|
committer | Nicolas Goaziou <n.goaziou@gmail.com> | 2011-08-15 18:29:37 +0200 |
commit | dfda5fc8b4dde778683f8407d8db4e3a02b96098 (patch) | |
tree | 2a5eb2b71e5d7d1a1906958a1eb5548d636f4532 | |
parent | bdf9f969156af2d82669352341f376f44547e497 (diff) | |
download | org-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.el | 4 |
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 |