From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id 6OBrKprOSWZ1xAAAe85BDQ:P1 (envelope-from ) for ; Sun, 19 May 2024 12:04:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 6OBrKprOSWZ1xAAAe85BDQ (envelope-from ) for ; Sun, 19 May 2024 12:04:10 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=JAH9mXUC; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1716113050; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=JZ4dxz+UngMq4rDc1Y6XomSC+QmbaPzmJPM79BcFgd4=; b=HfxcJDb4tLgyTmkzWeVucaaZ00tE1UR8aRzxXaBnuVzA3DEBFlVXMNLxr1HWP4YlcBCbgr eCOvGiAMtmvFEFNoEOQL4vl1JMM6iY0W0NRjMjHgm49IXBaL7xEVmw/+5aRLOMbfqCp3Es sFEk89PRWLNqRO/F8gpruHTbPndyoz6xN1hly5Ef1uCvYZ4eg2GDdPSvbIiJnmNkWLVHs7 VYBzvXFTKZ70zrgNlE/pjeoiY30cQzFPxEcOyv9woZpuyR5zdZb5cTXC+OrawFyj6iT/Z5 Pi6LrkxVnJIFpGpoxq7/8NnEiGKFGe8KQ5ZIokQpjtpn7uqujWPbYDEF0mtQxA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=JAH9mXUC; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1716113050; a=rsa-sha256; cv=none; b=UnH+5/YtsBvxgldMmrktT+NnXMfci2qotYa4Y0Vs+zrGZWcMgYOS+ZUiHNy2x8usvzd7eH /DYpPVev1X4rDf+8ItsabVI9SrFJhRHglA9lxcW7ZaydEGAFCT0qUK/XDU1ZlbgZJJfTlL 0zGOpO0kDsI5d3gCTiBYa1u+KATB6iqvp2EGIX8szCPUhVmiTmDcQKjqEI+hmQn/B24Icq STeomLRbiRGDlZ5EQyK6RK1PUMs0En0CI0R1pTN2zrIDCj4MVq1sabhu/8NKhAk/Yi0exC aN1ImwKacE/g1kNjkMS9TZKZo1JhJu/GSgk+PAm/FT6x6NFDwmd2VgNgz0rRJw== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7B96765735 for ; Sun, 19 May 2024 12:04:10 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s8dNt-0007pw-AT; Sun, 19 May 2024 06:03:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s8dNq-0007pj-H5 for emacs-orgmode@gnu.org; Sun, 19 May 2024 06:03:14 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s8dNm-0008Sb-T3 for emacs-orgmode@gnu.org; Sun, 19 May 2024 06:03:13 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 863F3240029 for ; Sun, 19 May 2024 12:03:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1716112987; bh=9+IrrEcdaUe7y43FxnP+3tNT4npji+Hxla48MmOd8kQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=JAH9mXUCw5etvulcF5CTu3uXyxcRjHny7qCCBGz3UpJlOT2XV8FCCgQ4x2zVY/TKS qvORBszovZ0xTz61U4Zneyk814V6XR9+AsCu0lWf5Rl0JmvVkhDbyoK7eP0aprE6Et 9/gsGI4npfbIn85nbVtRYaK10x72rFfPyGia0uo6/jbBDFEEqZzOXI/T8HsRhdBpo8 40ZuO+8tQh3O4SRSI7hHayO9Zxk0mJ3VEoSb6n78mI39U83Tsl/uiLDcAqkQqrpRsu wtSwXNl8n5tVpS6IiJZP88Q5ZpFpQ0zb7ELkjr5UmNzQOkGSE7W01TujMye8vzBCm3 StOHIIYQSjabg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Vhx8p5Mlgz9rxL; Sun, 19 May 2024 12:03:06 +0200 (CEST) From: Ihor Radchenko To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Re: Trailing whitespace after export snippets without a transcoder In-Reply-To: <871q6ploo1.fsf@localhost> References: <5210ac1c-ed73-4b82-a296-41cf90b9f0a7@gmail.com> <87jzvmwnmw.fsf@localhost> <87ilauagvy.fsf@localhost> <87y1hqqgiu.fsf@localhost> <87ttk26crq.fsf@localhost> <87h6fwmgkm.fsf@localhost> <87wmoqq3ad.fsf@localhost> <87wmoprzm4.fsf@localhost> <871q6ploo1.fsf@localhost> Date: Sun, 19 May 2024 10:04:50 +0000 Message-ID: <87zfsm3ynx.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -7.14 X-Spam-Score: -7.14 X-Migadu-Queue-Id: 7B96765735 X-Migadu-Scanner: mx13.migadu.com X-TUID: UkfYxJtJ/TYj Ihor Radchenko writes: >> I consider that just newlines are enough to make HTML markup human >> readable. I believe blank lines appear in HTML due to conditional >> constructs interpreted by various template engines and almost nobody >> cares concerning actual formatting in such cases. > > I looked further, and it turns out that Org export is already overriding > the blank lines produced by the exporters. > ... > For now, we only override newlines between elements, not objects. > For objects (but not plain-text), we unconditionally append :post-blank. > > I conclude that it is actually OK to go a step further and cleanup > newlines after objects, before appending the post-blank. > > Same for plain-text. Not so easy, unfortunately. Cleaning up spaces (in various degrees) always leads to cascades of failed tests. I did not find a good way to cleanup blank lines between objects without overriding custom export filters or presenting these filters with inaccurate information. So, I went with the approach modifying individual export backends for now. Applied, onto main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=14848726a https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=6d5fa8198 -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at