From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id yNV0OEhDB2SSigAASxT56A (envelope-from ) for ; Tue, 07 Mar 2023 14:59:36 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id sAtDOEhDB2RuiwAAauVa8A (envelope-from ) for ; Tue, 07 Mar 2023 14:59:36 +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 8FA652D0F8 for ; Tue, 7 Mar 2023 14:59:36 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZXpo-0002qH-Bo; Tue, 07 Mar 2023 08:58:32 -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 1pZXpi-0002o6-7U for emacs-orgmode@gnu.org; Tue, 07 Mar 2023 08:58:26 -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 1pZXpg-0000ti-7C for emacs-orgmode@gnu.org; Tue, 07 Mar 2023 08:58:25 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id A53CE240101 for ; Tue, 7 Mar 2023 14:58:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1678197501; bh=VEHHgB5iZ/xXXUfyh6Gs/RSI6EhN91rgfdILeJi+Nq8=; h=From:To:Cc:Subject:Date:From; b=sEEtEShFf6MmUz2xfyqLTtjV1J68oZv4XzfUl0gUaLxMLfCqH8SFj1nuSdC1s3ROU SjWS1Uuq2fLVRtddZ82dByYgwX+HljfcyX1SvgxxBDhxNYqXiO+UdxrkxbEPQLAsT6 Umei7CnH1QVKnbXV+xi5OH4wVqaLWbD4Il2pjARidNKOviI+9SQVU2o/bfajCfHa9X EQokvTceiQPlVmaKuXY2kjmCEKijv+VcYRVAP/mountBa9acpUYRU0yZW8YQxWwxqN zrfb5ZbTE99jWXmx22N2xGKgPYCUmcyadw7bn+HNQIvdQM4qblyFFVJVa6Qj6xlXyJ kovlP34roS5tA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PWH8r6Wk3z6tmh; Tue, 7 Mar 2023 14:58:20 +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: <2b73ed2c-214b-36f9-d695-9137a37a88f3@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> <87o7p7z9k3.fsf@localhost> <0D66BE43-7FF4-4B96-A1EC-03AF5FCA93B5@gmail.com> <878rgbz7w1.fsf@localhost> <5571340B-0551-4DA1-AFA1-3A7C94C8DDB7@gmail.com> <875ybfz71b.fsf@localhost> <2b73ed2c-214b-36f9-d695-9137a37a88f3@gmail.com> Date: Tue, 07 Mar 2023 13:59:46 +0000 Message-ID: <877cvsfyr1.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-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678197576; 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=hBuRrXDu7bkl54otCFi8I3j3d/vJLThlKycH4hVyAzk=; b=hmqNi79ygLBxFRkpfryZD7CHEu3h8Zrth3B35ZjcRfCT/mlpQEwWUDxCP8SkEVsIu3lBaf dA6LQGmZ3btU/LxXx/+KB3wftVrGYwV4hbXTYECpJv3qggZST+yF1lJtym3ZhCvPU/rWJQ 6Riy0cyNOV2ebWiKUDpRG/2G8uo30iGzb4lbXfR1l3k3ABQnwAlDzVA3rE3q3bvQK8gHWG WHuZg1ndTArLYj3333NzlbQ9FEW5QCQ9K/1d1AA/RCy6LhETKO2GqVSMwQyt0sBEmmg8pO z/mPMajScmuvP2FvtC8TDuG8O90BVo40CIXrUwkvKOVE3L6lFT0146O4DJ1Okw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=sEEtEShF; 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=1678197576; a=rsa-sha256; cv=none; b=QXgQ6y+ngcyQaSMevt+Hw9ZCUo/J27jAeHLUX5v+HjM/jDMtpatfvCK9YbeKuJ4MyV9yw3 sNejqHYsoLbVyZ7Zos6xHezzKPrXjnMKYtp5QbJPy+cLdwori5Hj/0Y1JHZpqBv5hGGfK+ EFVl68CYSbf5AAdvUz+riisQkaiPG6JUrCTUdprXmEA5jH+hgiRh0sjaHaA6Q6Sgnl+95m vfn1a4zHAxfqXFjbyzoOGfy3iNqQHOYkOkH+pp9jPPb7rBhBZJzfKo2ab6YNoPiTy/7qJp L0kU9Yn3NAfZjSRC41KkWDnreZeot6OzW2TMxAWCTosFtDlRoOWYmKb6kRG4Aw== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=sEEtEShF; 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-Migadu-Spam-Score: -4.70 X-Spam-Score: -4.70 X-Migadu-Queue-Id: 8FA652D0F8 X-Migadu-Scanner: scn1.migadu.com X-TUID: /Bl0/3f13UwU Max Nikulin writes: > On 05/03/2023 20:01, Ihor Radchenko wrote: >> Consider >> >> * Heading [0/1] text > ... >> Text with newline\\ >> [footnote] more text. > ... >> Text (parens[footnote] ). > > I am not convinced that space should be dropped here. I agree about the last example, but what about "Heading [0/1] text"? >> It might be enough to use spaces if and only if there are no preceding >> spaces. Or not. One may think of other edge cases. > > An idea: retain :post-blank having more spaces. Newline > tab, tab = 8 > spaces. May you elaborate about "newline > tab, tab = 8 spaces"? > Ihor, could you, please, be more specific concerning languages where > spaces may be used before footnote marks? I would expect at least > non-breakable spaces, but they are not stripped currently. Well. Not languages per se. (I have none in mind) I was thinking about various representations of footnotes. In particular, footnotes in ascii/texinfo export. However, I now checked what we do about footnotes in Org manual, and we do not use spaces: The summary type. If specified, the column values for parent nodes are computed from the children(1). So, maybe it is safe to assume that spaces are not commonly used right before footnote references. This is only for footnotes though. The code responsible for removing certain AST objects during export works not just foot footnotes. Unless there is a strong reason to treat footnotes specially, I'd prefer a more universal solution of the problem that will work for all kinds of removed objects. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at