emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] ox: fix comment exported as a blank line
@ 2022-06-01  5:30 Phil Estival
  2022-06-01  5:43 ` [PATCH] test-ox: no superfluous newline in exported comments Phil Estival
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Phil Estival @ 2022-06-01  5:30 UTC (permalink / raw)
  To: emacs-orgmode


* lisp/ox.el (org-export--skip-p): no longer export single-line
comments as blank lines which did break paragraphs in two.

TINYCHANGE
---
  lisp/ox.el | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/ox.el b/lisp/ox.el
index 9a8e63046..2c50fba0c 100644
--- a/lisp/ox.el
+++ b/lisp/ox.el
@@ -1756,7 +1756,7 @@ not exported."
          (before (or (org-element-property :post-blank previous) 0))
          (after (or (org-element-property :post-blank datum) 0)))
         (when previous
-     (org-element-put-property previous :post-blank (max before after 1))))
+     (org-element-put-property previous :post-blank (max before after 0))))
       t)
      (clock (not (plist-get options :with-clocks)))
      (drawer
-- 
2.31.GIT




^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-07-04 11:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-01  5:30 [PATCH] ox: fix comment exported as a blank line Phil Estival
2022-06-01  5:43 ` [PATCH] test-ox: no superfluous newline in exported comments Phil Estival
2022-06-01 11:48 ` [PATCH] ox: fix comment exported as a blank line Max Nikulin
2022-06-02  5:02   ` Phil Estival
2022-06-02 16:09     ` Max Nikulin
2022-06-01 13:14 ` Kaushal Modi
2022-07-04 11:47 ` Ihor Radchenko

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).