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 ms9.migadu.com with LMTPS id 2D0gM7b1CWRbMgEASxT56A (envelope-from ) for ; Thu, 09 Mar 2023 16:05:26 +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 oMUDMrb1CWRkKgAAG6o9tA (envelope-from ) for ; Thu, 09 Mar 2023 16:05:26 +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 9C23D8E44 for ; Thu, 9 Mar 2023 16:05:26 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=none; 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=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678374326; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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; bh=/XipXiJfrGDUtxvO5q2jnKy4q9xtaGhu9ZD5s897Cig=; b=VnYMG7dKbgQiZ1ilO5UcgYhd65Z0kV6G2rywc1e6Oh6QqFP/WSLxmOfjzGp3DA0XVD1l+x 79fD0iuK1BHH+wXcejYv6Ho9Gtay76eumEx/Xw5a0HSceJfHhQtYCp9GiiwUhd/1O4LoRT aBAnR1W00YVdoGaIFmFaYbHRgvHzaPfHLytwujCB3qtS7FkLd53Y0dZPvyDK4LpEAVRJCm 1hQMnykGxe6QsyrYNjOAuriMEhhJl0PTAeUZ5wEoXH1v/8CWOQgSgo+RO+Q8XHPZW3IAhh qAuMBmF5DDVXSw+jjm76T7HiHJ/A7Qxgv34PQkskoCdx7X//jFZn4zPPP9bOxg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678374326; a=rsa-sha256; cv=none; b=OC4PEGY2G2uMkuWVuoAMtkUnNbriE+xI00PUMZ54iqQI8DkC4bleVZM6TguTwWV51qAw+3 ybPuOf37haTrUrXj3u+4Q25wO8eK9GhHMsOQKiqRuNTBZ5v30bZA3LbuX+rjmFWkLom1aB Dan0qf4idzMpE6ZuAXZH2IPVW07C2F28hmHjCZIZ0FIinjyVTu1uIJM1V1DbZKSDrC2rd5 yUvpWj8fjRl4DIqgJnrKKKMhf7ZnvjOyAG/yCiQPD2O5HnMi5DWO2ImS5Wf/TbCR/NBqpu eK5G38fQIGVCE/aB+Fl+ztddAvakGF8bstEaDc6oMnQgf45FvDwdAKNUcTsKwA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1paHp3-0005nB-ER; Thu, 09 Mar 2023 10:04:49 -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 1paHp1-0005mv-QD for emacs-orgmode@gnu.org; Thu, 09 Mar 2023 10:04:47 -0500 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1paHp0-0003kl-Ab for emacs-orgmode@gnu.org; Thu, 09 Mar 2023 10:04:47 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1paHox-0001t0-Qi for emacs-orgmode@gnu.org; Thu, 09 Mar 2023 16:04:43 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin 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/)] Date: Thu, 9 Mar 2023 22:04:37 +0700 Message-ID: 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> <877cvsfyr1.fsf@localhost> <87y1o6p02i.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Content-Language: en-US In-Reply-To: <87y1o6p02i.fsf@localhost> Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 28 X-Spam_score: 2.8 X-Spam_bar: ++ X-Spam_report: (2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NICE_REPLY_A=-0.001, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: X-Migadu-Scanner: scn0.migadu.com X-Migadu-Queue-Id: 9C23D8E44 X-Spam-Score: 3.50 X-Migadu-Spam-Score: 3.50 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-TUID: BH1+czG0eLSq On 09/03/2023 19:43, Ihor Radchenko wrote: > Max Nikulin writes: >> Both "Heading" and "[0/1]" have the same :post-blank " ", so when >> stripping the statistics cookie use " " :post-blank for "Heading" >> (retain current value). > > Sorry, but we are mis-communicating here. No, it just means that I am not familiar enough with org-element structures. > :post-blank can be either nil or a number of spaces/tabs after object. > > Plain strings always have :post-blank nil. > So do line breaks. If preceding object is string than trailing spaces should be taken into account instead of :post-blank. If footnote reference or similar object has more :post-blank spaces than replace it by string with space characters to have footnote's :post-blank in total. Alternatively append these spaces to the preceding string. > ---- > Text with newline \\ > [fn:1] more text. > ---- > #("Text with newline " 0 18 > (:parent #2)) > (line-break > (:begin 19 :end 22 :post-blank 0 :parent #2)) > #(" " 0 1 1 space--^ > (footnote-reference > (:label "1" ... :post-blank 2 :parent #2)) 2 spaces---------------------------^ > #("more text.\n" 0 11 So stripping the footnote use 2 spaces " " instead of preceding " " or add another " " (unsure if 2 adjacent strings may be a problem for export backends). I was imprecise, but I do not see any contradictions.