From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id SL7KM/6LBGTaDgEAbAwnHQ (envelope-from ) for ; Sun, 05 Mar 2023 13:33:02 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id iH3gMv6LBGS9jgAAG6o9tA (envelope-from ) for ; Sun, 05 Mar 2023 13:33:02 +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 87842113BD for ; Sun, 5 Mar 2023 13:33:02 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pYnXM-0007dT-EF; Sun, 05 Mar 2023 07:32:24 -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 1pYnX8-0007cZ-Lv for emacs-orgmode@gnu.org; Sun, 05 Mar 2023 07:32:13 -0500 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pYnX6-0004s0-4M for emacs-orgmode@gnu.org; Sun, 05 Mar 2023 07:32:10 -0500 Received: by mail-ed1-x52b.google.com with SMTP id x3so27719277edb.10 for ; Sun, 05 Mar 2023 04:32:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678019523; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ACe3tBdQoqxuksu5pezXa9F7k8G2Bhhrdpxm3BA3Lk4=; b=QEOVXgIjbHG67uIeGzq10dpf9fOFn5WPFVOd4dkD5KZ/Q/Q7fhQJCQ6Xk6Y992stcS bwPbyXikR0GS5Yf+2rWXBCnNA9k/ovBZOtkg/rS/COR/8M9Jhcy1XsR340CAXpTxNwC1 MkvZh+SGRoFAUlPBsS6zgFMw819pslDhAK9NENLG4Dfvtn1BilChDVruPGziL9spgu7m WOAGRXFlV/xJeMSuy6Spyvo5lY7v50aqStxYFXv03sAX6WfBD2JdyewkqFaio6pSoK/p AWNUihzHsKPKE3wZeaGa/IEzO0iduajNuMdle1gLQzTH5BFlIQvKuagqvGaLmngWVPRj D50g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678019523; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ACe3tBdQoqxuksu5pezXa9F7k8G2Bhhrdpxm3BA3Lk4=; b=V5ry9OGa51sKjUmAI2izNVTeX5wVf1xNp2Nmi9Oyhhi9kF7VAMZyTWSEGYrfDcVZmS jPt66BRf0/vXkRiPD9NvM2PjNyHYVq6bTpG4OIKL0MI3lVdnd2hwUtj6e5jVJJK1UcKX vAantDoUFHklsOaJbO0IJS40DwK0/6FvkwuobPdbo+hPz1+lsNPsdy/u/jEj1homQ1RT 8KfaZ1D83JKOYVUcsYOeFxYWB6PvQXiB6784XI8ZsZEUkppyWTQTrNhMP9DWTnTgJWRL VGY/KvW4HYCYKf4E3Ys2TjEzUqX6gofgXDXvciK8pJTs/fpNRY8+ToC+JgT+uLyyhrvv yJTg== X-Gm-Message-State: AO0yUKVA6aVYa+dgj/6gX9qs//XwZJOKLd7HZTc/IpgNfIB9j0+GQwXp vyHRFxy5CbBDSe+ZAEKYzaw= X-Google-Smtp-Source: AK7set+fBCsBQP1QgpdaZ1R1VpC9rRUG0kgIhcxm47bH4QvVN36OXCLvqzZAIuGu35jPSAIZcQbvHA== X-Received: by 2002:a17:906:8317:b0:88d:5043:2299 with SMTP id j23-20020a170906831700b0088d50432299mr6944600ejx.51.1678019522922; Sun, 05 Mar 2023 04:32:02 -0800 (PST) Received: from smtpclient.apple ([151.40.43.136]) by smtp.gmail.com with ESMTPSA id e2-20020a170906504200b008f767c69421sm3183503ejk.44.2023.03.05.04.32.02 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 05 Mar 2023 04:32:02 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.100.31\)) 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/)] From: Andrea Lazzarini In-Reply-To: <87o7p7z9k3.fsf@localhost> Date: Sun, 5 Mar 2023 13:32:01 +0100 Cc: Max Nikulin , emacs-orgmode@gnu.org Content-Transfer-Encoding: quoted-printable Message-Id: <0D66BE43-7FF4-4B96-A1EC-03AF5FCA93B5@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> To: Ihor Radchenko X-Mailer: Apple Mail (2.3696.100.31) Received-SPF: pass client-ip=2a00:1450:4864:20::52b; envelope-from=andrea.lazzarini1@gmail.com; helo=mail-ed1-x52b.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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=1678019582; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=ACe3tBdQoqxuksu5pezXa9F7k8G2Bhhrdpxm3BA3Lk4=; b=Po8KzVJLFGdqHTo4GAzTVcF2ukA4hnhEmfx7Th/FHkYDobmSmO6SxZSa7IVhGds/PeAvAL wCiI+h6zlgS17zQdrhN+yddCd/FiuwhGUSwL38aZ1xke162sfGynxDbpQlJhqcZ5NyUiqc IXG2wyBS1hW/t6yXsO5REuifbqBTaqI3a0sDF19oPboEcJUF9PgvJEbBajGzVKQqIckOJK WRKCLlEyqSnCdu5SDu4oI1fXkqyxj4H6Xj7NgsIV79jk8NLokbr1lE04U/693D9oy4PIQc Mw4OiseDhhhhfzuDJYmkvuVFkBJ03bTpHjlQr2NP52L9xslHUA+PJV8E083LXw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=QEOVXgIj; 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=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678019582; a=rsa-sha256; cv=none; b=Wipk6lKnWsdeRO3lJWN54IHJDZMhc2NKJmDafdI95YKuN1msHCLbLhQPCCzy2Nzd0nASD3 oSnIcANRdp0xw30SYbeReMHgtw/nOg8BphAYxOYWrFp4YHqM7Cp+CL+JqVEuh6SlnOwJxY vxfRO2AfQsSKV+YvO8Xio+1XZUfcHQ8lBoTAjNsd+59DcYkHSE0AtXkb9ZBV5IrnGsyvnj 4qfFPiL1G4rADLhnA7/UrQsDRH5vxtlduo6gpUBYmiTNj6boKIoBizd4ESJg7bxRFgH7bg KgUX4qH8D29W727urmMiiB6WigVrJGFrZ2pX9Nxc9t7Wqa6bpxlNtvmTDkmfqA== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -4.43 X-Spam-Score: -4.43 X-Migadu-Queue-Id: 87842113BD Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=QEOVXgIj; 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=gmail.com X-TUID: tPVhaZ9WN2CO Consider the fact that I had to put an extra space before the footnote = exactly to have a space (not an extra one) in the result. As you say, couldn't it be replaced with: > maybe with number of spaces equal to :post-blank ? > Il giorno 5 mar 2023, alle ore 13:06, Ihor Radchenko = ha scritto: >=20 > Max Nikulin writes: >=20 >> In my opinion, the filter removing footnotes should transfer = afterspaces=20 >> to preceding objects. >=20 > I am not sure. >=20 > 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. >=20 > Also, should we replace footnote with a single space or with the = number > of spaces after? >=20 > Further, this bug is actually not just about footnotes. The footnotes > are removed in `org-export--prune-tree': >=20 > (if (org-export--skip-p data info selected excluded) > (if (memq type '(table-cell table-row)) (push data = ignore) > (org-element-extract-element data)) >=20 > The extracted objects can be latex-fragment, statistics-cookie, > timestamp, and footnote. >=20 > Will it be safe to replace all the above with space? Or maybe with > number of spaces equal to :post-blank? Something else? >=20 > --=20 > Ihor Radchenko // yantar92, > Org mode contributor, > Learn more about Org mode at . > Support Org development at , > or support my work at