From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 IDo3KOg+D2TbCgAASxT56A (envelope-from ) for ; Mon, 13 Mar 2023 16:19:04 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 2OAyKOg+D2SGcgEA9RJhRA (envelope-from ) for ; Mon, 13 Mar 2023 16:19:04 +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 5CD4812309 for ; Mon, 13 Mar 2023 16:19:04 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pbjwJ-0004QV-Iw; Mon, 13 Mar 2023 11:18:20 -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 1pbjwC-0004PI-HX for emacs-orgmode@gnu.org; Mon, 13 Mar 2023 11:18:14 -0400 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 1pbjwA-0001IU-PR for emacs-orgmode@gnu.org; Mon, 13 Mar 2023 11:18:12 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1pbjw5-0008sf-Rv for emacs-orgmode@gnu.org; Mon, 13 Mar 2023 16:18:05 +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: Mon, 13 Mar 2023 22:17:56 +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> <87v8j8yfjk.fsf@localhost> <87zg8jwp26.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: <87zg8jwp26.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: 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-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) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678720744; a=rsa-sha256; cv=none; b=FqbIag4WDnGUGnGQCe2deIpZ9EwqS2i5lEsjBvo5EKlYY4ZMu21dwGX5Q+fyJ3H/EhqCLK zH9v43qPPJqzgwGOc2K4X9c3N9gsJS7IJ6Geb4rLlnISezmakkjlc+dhucOeAjRUSFE2lS oDw0Sa5ipD/FAIzjTmAA+j8qprci3TpELpBcR6sKSPNc1OCF1H6yV2YKntjJsGdebP7nDr D6xeoOJnUqBri9+GEWWmUqwSH54kV5xkjCcL4LBRk+/hkJD9246NrkjFlC5FjdgodwC/yj WtsJSIN8h+u29L4BdnYfCE0h6jfkRI4KXIdaYz1boCl35BZAoUm67M5pXJQL5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678720744; 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=o/z7wLHB84zRURmXOk5uKGrdZKFq/pC+aM5e/PWL21o=; b=F42RB733FW/Tzn2c3uMphnmNKFfola7xW3DdgyW1lu7qoXapDavZv0Nw+0FTRJyyTKkTY9 jcC0RNiJgTUvFq3iYt6MLpfzpGaZXBt7kvab2/CfJvJb7IHijgL0vmm/Hi4GfwPpqGQqwg ihhWY66pZ/VV413rny/ScrU11eFYM4abmN/5Ksm4RLx5wcR6MzdiCF0QYqKlvkMBuLa5Ho eBPAgOB5aUSVu/nqNZxRKkR/cLZl37fjtHpFdMtsWCWPXrT3sdKl4YYGWqGycreDBRYcw1 CmrONGKOxz/1GIAF2EyurOWkHp/3CXaM1kGnulWyQjnnc1YGht3UBDPrXHnRSQ== X-Migadu-Spam-Score: -2.42 X-Spam-Score: -2.42 X-Migadu-Queue-Id: 5CD4812309 X-Migadu-Scanner: scn1.migadu.com 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) X-TUID: mSynxxsrqHJT On 11/03/2023 17:38, Ihor Radchenko wrote: > > Newlines are tricky. They may or may not be significant. > For example, in CJK paragraphs, newlines are to be stripped. > > I think that a reasonable thing to do could be not adding newlines if > the previous object is a plain string ending with a newline. It is in agreement with my expectation that the fix should not be LaTeX-specific. That is why I raised the issue in this thread. > This is latex-specific. > See the attached tentative fix. > Reported-by: Max Nikulin > Link: https://orgmode.org/list/tufdb6$11h2$1@ciao.gmane.io and Max Nikulin to emacs-orgmode. Re: Comments break up a paragraph when writing one-setence-per-line. Sun, 3 Oct 2021 18:34:10 +0700. https://list.orgmode.org/sjc4fk$76r$1@ciao.gmane.io > + (replace-regexp-in-string > + (rx (1+ (0+ space) "\n")) "\n" > + contents)) What I do not like with this regexp is that it matches every newline character, not only blank lines: (replace-regexp-in-string (rx (1+ (0+ space) "\n")) "[n]" "a \nb") "a[n]b" If you still believe that a fix should be for LaTeX only then I would consider extra "\n": (rx "\n" (1+ (0+ space) "\n")) I have realized that the following is a kind of pitfall in Org syntax: #+macro: comment Another {{{comment(Paragraph separator! Do you expect it?)}}} paragraph.