Browse Source

element: Fix table.el parsing... again!

* lisp/org-element.el (org-element--current-element): Properly parse
table.el tables ending at limit.

Reported-by: Kaushal Modi <kaushal.modi@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2021-01/msg00067.html>
Nicolas Goaziou 4 years ago
parent
commit
332da69b3c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org-element.el

+ 1 - 1
lisp/org-element.el

@@ -3971,7 +3971,7 @@ element it has to parse."
 		       (cond
 			;; Must end with a full rule.
 			((not (re-search-forward non-table.el-line limit 'move))
-			 (beginning-of-line)
+			 (if (bolp) (forward-line -1) (beginning-of-line))
 			 (looking-at rule-regexp))
 			;; Ignore pseudo-tables with a single
 			;; rule.