From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 0LTMMC9mEGR5swAASxT56A (envelope-from ) for ; Tue, 14 Mar 2023 13:18:55 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id YJ3MMC9mEGSkeQAAauVa8A (envelope-from ) for ; Tue, 14 Mar 2023 13:18:55 +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 7B7C83A665 for ; Tue, 14 Mar 2023 13:18:55 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="DXnep/2i"; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678796335; 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=mtH/SL0l181leiVJOgDBsOZUqU4OWhGGo/g3uyanB9c=; b=pDYcvZC3IjwNADDUgs1m5Si8UZtSLGG6u0Rs0+e/sz3L3/qbNHJtwko6+PvkBuvLx2yTDa zMwAyRI9rfTB2inNJDq4yNtM3A7wHzRWCHYxY6JfMpKniJgdKtFMi5hi0+bfjHG0GP1gga WquwNNRJZyKo0qL6EQwDd6iYvb8U105gWSI6q80sbPH4KU+L1ANpCeiV24b18b5njJ9/lF lSxxGhbUTqErlxbJA5PrFv8LGnjIh0kdXsAOI1cs4Q/hiIANdIf05Yiapa7OEWm1Qx0vSV RLp+K4C2Cn7jHv1nyleSAxf4C0QD4PUWDKurynZ6ae7K1fLxaYQ09eMx44zYQA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="DXnep/2i"; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678796335; a=rsa-sha256; cv=none; b=OMU/V+NEM/zHTRrSlxYoczLpYgNWuTqNVpg4TJB+3GxFkTJ8HOukkcDvI7u6Q/Yow9Bg95 amZ8DV5SzurdaWQCrGW3V4hS7ZYr8Q0f0csaUEIHxzr4WLbpvXHDy9jq0UN8wqnTmkpnlw ResWFTsePMWk5U1XSHSIzu3eWq3NRJHDk5B9GyumEeqsIk7BjHFH6XHSHX60QpZkkurzU+ PpZxI2fk2HOVzR1tGF4wewn3sxsPjCBk88lRN8zjAz93sX4/f6/aJPjzHycMSPsjz+qZxm kQJMiA02Golof+9XmFZ+dz5f/BG4qC1bP+S/a+vdPJs2aijDEIjdhui7r/xsYA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pc3bT-0005Gi-3o; Tue, 14 Mar 2023 08:18:07 -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 1pc3bR-0005Fw-H0 for emacs-orgmode@gnu.org; Tue, 14 Mar 2023 08:18:05 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pc3bP-000230-HT for emacs-orgmode@gnu.org; Tue, 14 Mar 2023 08:18:05 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id A1F2F240559 for ; Tue, 14 Mar 2023 13:17:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1678796279; bh=4t6IALQ9MmfyGJ/W5cXVx/jloL/MfHkq/MMik2KIA0U=; h=From:To:Cc:Subject:Date:From; b=DXnep/2iaPQScCrxFMY3bK4X/fd7ZY5jXqn9rmuBuQiIzpxschJtRPtMq8i8TWE+d urO5ltea2Fnsp4eXHs1emBCAopM0DBuk0qWpk7Ca8shRhxzgqg6z1re4Kb8JGMkO/8 WByT3h4oa+OZEzx40zrGNNCrQJP+xGOIBXffFbtRTnM/rjs+rABqb8Ve6XWj7qrGwY F/q0/4fXR+uxiMOOmYsrRmAS9kHCJ61MISioM2pvT59nuwdVMTDU/akOYGf6zSwGS7 2YSW5sh3Iwbfa3wckZ8NPzpTrzhJHkaeTZbzGzoHOCYZtArWQEy3yMDJ6wHBplNLm8 WMwKX4OJDJy5A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PbXbf1lTVz6tmX; Tue, 14 Mar 2023 13:17:49 +0100 (CET) From: Ihor Radchenko To: Max Nikulin Cc: 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: 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> Date: Tue, 14 Mar 2023 12:19:11 +0000 Message-ID: <87fsa7o79c.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.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: X-Migadu-Queue-Id: 7B7C83A665 X-Spam-Score: -11.03 X-Migadu-Spam-Score: -11.03 X-Migadu-Scanner: scn0.migadu.com 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 X-TUID: P5kPjdKaTEAh Max Nikulin writes: > 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. I still think that the issue with removing a lone object in a line is LaTeX specific. >> 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 > > .... > 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. I do not consider that a bug. Macros can insert anything, all the way to headings - users who use the macros are expected to know what they are doing. >> + (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")) Applied, onto main. With your amendment. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=3d04af382 -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at