From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id C8BJJsWFBGSdqwAAbAwnHQ (envelope-from ) for ; Sun, 05 Mar 2023 13:06:29 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id mj/uJcWFBGSmewEA9RJhRA (envelope-from ) for ; Sun, 05 Mar 2023 13:06:29 +0100 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 E9E4A2DECF for ; Sun, 5 Mar 2023 13:06:28 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pYn7O-0006dl-8b; Sun, 05 Mar 2023 07:05:34 -0500 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 1pYn7M-0006dc-2v for emacs-orgmode@gnu.org; Sun, 05 Mar 2023 07:05:32 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pYn7K-0006pn-31 for emacs-orgmode@gnu.org; Sun, 05 Mar 2023 07:05:31 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 40B702401F8 for ; Sun, 5 Mar 2023 13:05:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1678017928; bh=hi6Zo2T5A3FT/JuDegAlVLfT91CKgldc/UJGy2slODQ=; h=From:To:Cc:Subject:Date:From; b=PcAvQR0UgoCxIkXIm7qdMdIsmxvUCApDbDtQ8JlVuRFNlksZ5ATF/mMc0E1w09JDH xJWGM18dGFgMnkGn8zqX7H9pAuD4sHFYKaZJfsujTPec9UAm812JCFonbDZw8MtnCP T8s7vIZYyM0Ks1bPckJ/C1SY7OnlcH8JvyTFQ02rGcP3GHF9+Cm7Wqqb6xA1GRowBZ +HaFJdqg7OzS6PO8bCGcAuJWJvtQAzVhetfyPhMxiwKg5MnsfKkimDKvZ4b+Rm5Q09 LR8+T6e9TtgI68HzbTif9maKRib0CY8LmRtC3I9pYcAdeM7OtcGmfkOqQ2I9/aZZdO fIh1zvNJfocXw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PV0lW3KDvz9rxV; Sun, 5 Mar 2023 13:05:27 +0100 (CET) From: Ihor Radchenko To: Max Nikulin Cc: Andrea Lazzarini , emacs-orgmode@gnu.org Subject: Re: [BUG] No space after footnote with org-export-with-footnotes set to nil [9.6.1 ( @ /Users/test/.emacs.d/elpa/28.0/develop/org-9.6.1/)] In-Reply-To: <9302738a-b351-0422-22ad-e764aade01e5@gmail.com> References: <5BB5EF8E-6D40-4055-99AE-BF596E5E8C98@gmail.com> <851a585b-ea53-b24f-438b-ffd9b36d29f5@gmail.com> <87v8jh4z2d.fsf@localhost> <9302738a-b351-0422-22ad-e764aade01e5@gmail.com> Date: Sun, 05 Mar 2023 12:06:52 +0000 Message-ID: <87o7p7z9k3.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.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_H2=-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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678017989; 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=J6KzwkfO6prFBzM+yKGDNlVlxKOiHt3hoakhKsKd1uo=; b=n/6V2HFdl00PumUBZ69RA8jpAEfnE8qcCxIxMgskaDp3Wg5PTyn43Zapff5c6CjRU5zwCA FgJRWwYB2Bl0c+DqWsWgz04oI4RG2X1lbzK+SChShy21qHxbJBcSvrqo3iYggHH4tODxNR 198Pdm2eiftows046njZNqrn7GrdxVvRqr1J0PqBNd2GE+5hhZ8nJ2EeK6g6x6ejanYdR5 dfGcBbVo7LJkEr/R9nRVe3vg9J0NiuI0ag4ob388uB1dxwbii59GvtylyEqXUiItgLY4a4 6mOhtgea4pwbyCCjYmYmqFnklXVvPx6/BGw6oUoPRr3vsKAn2115Q/xixbISog== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=PcAvQR0U; 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=1678017989; a=rsa-sha256; cv=none; b=iWptF0rm7obWNZZe7LVWmsoFxhgR937ARSAWoeNT5NoKh5QwF0BeqbBWi5B4RX0MOGA/Dq Hp3O6ODOWfT0d7BoY3KL5+Z0FiqdZ0PSw6N9XvWr64LoiSvWzxJ7Fxmk2Rp60aoA66E8Q2 eYpmxbExaQTdh/wzUwDIZZmDBBsky5pW+jYy2suOtdGRiPrl86IP6SBJRS7oEHMk62jmlZ LB69u91+rWWksbphHrOoHTbFeb7AZugC++syH9Cmbekeg5VtaawFMljkbqnArKQxQMpHIg Gr1H1wLBIFfbVzjgJ9JPxUiVKv53dbvAw2XiRBGm6+pxkhg5BflRcA0ZOBAzBQ== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -4.70 X-Spam-Score: -4.70 X-Migadu-Queue-Id: E9E4A2DECF Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=PcAvQR0U; 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 X-TUID: NRfLOLdMirco Max Nikulin writes: > In my opinion, the filter removing footnotes should transfer afterspaces > to preceding objects. I am not sure. Consider text like "Pellentesque dapibus suscipit ligula. [fn:1] Donec posuere augue in quam." with space before the footnote. If we replace the footnote with space, two spaces will be exported. I am not sure if it is expected. Also, should we replace footnote with a single space or with the number of spaces after? Further, this bug is actually not just about footnotes. The footnotes are removed in `org-export--prune-tree': (if (org-export--skip-p data info selected excluded) (if (memq type '(table-cell table-row)) (push data ignore) (org-element-extract-element data)) The extracted objects can be latex-fragment, statistics-cookie, timestamp, and footnote. Will it be safe to replace all the above with space? Or maybe with number of spaces equal to :post-blank? Something else? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at