From bc0e14a1ab96de1a8a35c9e12cf68010e56ecdb2 Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Sun, 11 Feb 2024 12:50:12 +0100 Subject: [PATCH 1/2] Update version number for the 9.6.19 release --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 0787e2100..231ed094b 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -9,7 +9,7 @@ ;; URL: https://orgmode.org ;; Package-Requires: ((emacs "26.1")) -;; Version: 9.6.18 +;; Version: 9.6.19 ;; This file is part of GNU Emacs. ;; From 85aafac417d069407234027c3119624b67531ef7 Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Sun, 18 Feb 2024 17:25:27 +0100 Subject: [PATCH 2/2] ox-md.el: Fix adding blank lines between table rows in derived exporters * lisp/ox-md.el (org-md-separate-elements): Do not add blank lines between table cells. Even though table-cell elements are not exported by ox-md itself, derived backends do not expect blank lines appearing there. Reported-by: Rohit Patnaik Link: https://orgmode.org/list/d84d5df0-108f-4a75-b7d2-299392613052@app.fastmail.com --- lisp/ox-md.el | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lisp/ox-md.el b/lisp/ox-md.el index 8d01c746c..626ec45c2 100644 --- a/lisp/ox-md.el +++ b/lisp/ox-md.el @@ -152,8 +152,8 @@ headings for its own use." TREE is the parse tree being exported. BACKEND is the export back-end used. INFO is a plist used as a communication channel. -Enforce a blank line between elements. There are two exceptions -to this rule: +Enforce a blank line between elements. There are exceptions to this +rule: 1. Preserve blank lines between sibling items in a plain list, @@ -161,8 +161,12 @@ to this rule: paragraph and the next sub-list when the latter ends the current item. + 3. Do not add blank lines after table rows. (This is irrelevant for + md exporter, but may surprise derived backends). + Assume BACKEND is `md'." - (org-element-map tree (remq 'item org-element-all-elements) + (org-element-map tree + (remq 'table-row (remq 'item org-element-all-elements)) (lambda (e) (org-element-put-property e :post-blank