Browse Source

org-element: Update paragraph separate regexp

* lisp/org-element.el (org-element-paragraph-separate): More accurate
  regexp.
Nicolas Goaziou 11 years ago
parent
commit
7bee47120b
1 changed files with 6 additions and 4 deletions
  1. 6 4
      lisp/org-element.el

+ 6 - 4
lisp/org-element.el

@@ -143,10 +143,12 @@
           "$" "\\|"
 	  ;; Tables (any type).
 	  "\\(?:|\\|\\+-[-+]\\)" "\\|"
-          ;; Blocks (any type), Babel calls, drawers (any type),
-	  ;; fixed-width areas and keywords.  Note: this is only an
-	  ;; indication and need some thorough check.
-          "[#:]" "\\|"
+          ;; Blocks (any type), Babel calls and keywords.  Note: this
+	  ;; is only an indication and need some thorough check.
+          "#\\(?:[+ ]\\|$\\)" "\\|"
+	  ;; Drawers (any type) and fixed-width areas.  This is also
+	  ;; only an indication.
+	  ":" "\\|"
           ;; Horizontal rules.
           "-\\{5,\\}[ \t]*$" "\\|"
           ;; LaTeX environments.