Merge branch 'maint'
This commit is contained in:
commit
74fda6f64d
|
@ -22189,7 +22189,9 @@ a footnote definition, try to fill the first paragraph within."
|
||||||
(table-row (org-table-align) t)
|
(table-row (org-table-align) t)
|
||||||
(table
|
(table
|
||||||
(when (eq (org-element-property :type element) 'org)
|
(when (eq (org-element-property :type element) 'org)
|
||||||
(org-table-align))
|
(save-excursion
|
||||||
|
(goto-char (org-element-property :post-affiliated element))
|
||||||
|
(org-table-align)))
|
||||||
t)
|
t)
|
||||||
(paragraph
|
(paragraph
|
||||||
;; Paragraphs may contain `line-break' type objects.
|
;; Paragraphs may contain `line-break' type objects.
|
||||||
|
|
|
@ -124,9 +124,16 @@
|
||||||
(ert-deftest test-org/fill-paragraph ()
|
(ert-deftest test-org/fill-paragraph ()
|
||||||
"Test `org-fill-paragraph' specifications."
|
"Test `org-fill-paragraph' specifications."
|
||||||
;; At an Org table, align it.
|
;; At an Org table, align it.
|
||||||
|
(should
|
||||||
|
(equal "| a |\n"
|
||||||
(org-test-with-temp-text "|a|"
|
(org-test-with-temp-text "|a|"
|
||||||
(org-fill-paragraph)
|
(org-fill-paragraph)
|
||||||
(should (equal (buffer-string) "| a |\n")))
|
(buffer-string))))
|
||||||
|
(should
|
||||||
|
(equal "#+name: table\n| a |\n"
|
||||||
|
(org-test-with-temp-text "#+name: table\n| a |"
|
||||||
|
(org-fill-paragraph)
|
||||||
|
(buffer-string))))
|
||||||
;; At a paragraph, preserve line breaks.
|
;; At a paragraph, preserve line breaks.
|
||||||
(org-test-with-temp-text "some \\\\\nlong\ntext"
|
(org-test-with-temp-text "some \\\\\nlong\ntext"
|
||||||
(let ((fill-column 20))
|
(let ((fill-column 20))
|
||||||
|
|
Loading…
Reference in New Issue