Browse Source

org-table.el: Fix `org-table-set-header-line-format'

* lisp/org-table.el (org-table-set-header-line-format): Skip
non-data rows correctly.
Bastien 5 years ago
parent
commit
a557cfcfc6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org-table.el

+ 1 - 1
lisp/org-table.el

@@ -492,7 +492,7 @@ existing value of `header-line-format' we might want to restore."
 		(tbeg (save-excursion
 			(goto-char beg)
 			(while (or (org-at-table-hline-p)
-				   (looking-at-p ".*|\\s-+<[0-9]+>"))
+				   (looking-at-p ".*|\\s-+<[rcl]?\\([0-9]+\\)?>"))
 			  (move-beginning-of-line 2))
 			(point))))
 	   (if (< tbeg (save-excursion (move-to-window-line 0) (point)))