Browse Source

Merge branch 'master' of orgmode.org:org-mode

Bastien Guerry 5 years ago
parent
commit
1ca26a755a
1 changed files with 6 additions and 0 deletions
  1. 6 0
      testing/lisp/test-org-element.el

+ 6 - 0
testing/lisp/test-org-element.el

@@ -2748,6 +2748,12 @@ Paragraph \\alpha."
        (org-test-with-temp-text "#+DATE: {{{macro}}}"
 	 (progn (search-forward "{")
 		(org-element-type (org-element-context))))))
+  ;; Do not find objects in table rules.
+  (should
+   (eq 'table-row
+       (org-test-with-temp-text "| a | b |\n+---+---+\n| c | d |"
+	 (forward-line)
+	 (org-element-type (org-element-context)))))
   ;; Find objects in parsed affiliated keywords.
   (should
    (eq 'macro