From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 2D9pC4G1omWxVAEA62LTzQ:P1 (envelope-from ) for ; Sat, 13 Jan 2024 17:08:33 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 2D9pC4G1omWxVAEA62LTzQ (envelope-from ) for ; Sat, 13 Jan 2024 17:08:33 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=WrseP6lm; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1705161985; 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=8lI4CSaVfKdVO8rK1gQUx/cvUAdNmaPC0cL5JOJ2qbg=; b=H635gFK0K5DiKCRXfuNX94ZTasACNVu0XfZ02+4fKOUy9I21wZXwx2FvFjenKCkh0ckVh2 1Mb3H8QQI9/bsc6koJYyXnofc1P+IMgBkwAWjDcTSBtkicgJrdBLf4r3AGruf08gXh0T9d IXY0uVdjwgXTl7bosSIzytnJ951c5x6gR5xCe189vsANlYPHp/UgGdIOSA1j6mrC61ttf5 Cf+WTHWSP4vr28cpoEu29sX7IzAgM/oegbyCLULyhTOUwkSH9v/5m64ErQa3rqa6Qlwubc uVYJBx2BnR1rhcWdMAAWU19899214lA7PRQ6w4z2G2rRC8KKGjKUcnPkEuAIqg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=WrseP6lm; 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=1705161985; a=rsa-sha256; cv=none; b=D9YMblGS7F9RIOUtGvM/AxGMukx0kzU7GCsIPylq5oFtQmsKlp8HPTggCHQXTUksCWebje ndmqsgCNeTgHBwyzZduNhNfdr7r7ZbglPUXC3VJ4OTBQDvLSad6oTQRZQSpD+SJE65aWK7 ulONRWzRda2XfRRu6UISUYpBGMJpjBB9Ue9DiPq/LAliCphVBCMmZXXIC1YTAUi78TL7J+ N0TmkRk2oFyfkjwlWejGLPVm/ifVjypGfYyYAUbWJiuXPMcxAd81D0e9LNd/nIGIhnlWkS vW7HcW7HCy2GaBlS24m8rG2fOdh1qCAYkF7/Ecowpe0meg53m4je5f7Pwtkn9g== 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 8A66D1774D for ; Sat, 13 Jan 2024 17:06:25 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rOgVh-0004nU-Lo; Sat, 13 Jan 2024 11:05:25 -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 1rOgVg-0004nM-91 for emacs-orgmode@gnu.org; Sat, 13 Jan 2024 11:05:24 -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 1rOgVc-0003Qb-2g for emacs-orgmode@gnu.org; Sat, 13 Jan 2024 11:05:22 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 0ECA0240101 for ; Sat, 13 Jan 2024 17:05:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1705161916; bh=wPZaEJ2nWHyS48nbS6WiT/z9CLh7YurjHgSf2d+qL+c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=WrseP6lmuuUdBuk0wNtmTvzfdT+4TkbR4Vnf5P/bRxFXrzqaLq3+G5/jXdNVlGJ3E Kbx4QyW5rriLNvRgAVFOXomp81QrPrEr35Tf0E/drwx+BrF6eF2zfklGjRSxbPfJAQ gRipLGMwhSNErQ9/t5YrI9JLkxO3fxvQgqL3aDvELGf2URtNDDkPMXQIuesbCYcho+ MZ1XniT0hbnhVWOcMWFLXR/WAdep1Sc5ub8B1JQ+42fdqVJuCG6qL1gvVrj000H3JG 22Iz0D55IrCF+XkODMmy2gIy8ogRQdjyyydoPS3dn0XTg2m+5NJyGnR9q+VbOp+KAi AEc0rffsCGGpA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TC3CH3RNlz9rxB; Sat, 13 Jan 2024 17:05:14 +0100 (CET) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Ihor Radchenko Cc: orgmode Subject: Re: [possible patch] Remove the '\\[0pt]' string from the last line of a verse block in LaTeX export In-Reply-To: <87cyu5uv7c.fsf@localhost> (Ihor Radchenko's message of "Sat, 13 Jan 2024 15:08:55 +0000") References: <874jfvjo2k.fsf@posteo.net> <87cyu5uv7c.fsf@localhost> Date: Sat, 13 Jan 2024 16:05:12 +0000 Message-ID: <878r4tfccn.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=maciaschain@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_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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 X-Migadu-Queue-Id: 8A66D1774D X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -3.21 X-Spam-Score: -3.21 X-TUID: +6MAltuvyMcS Ihor Radchenko writes: >> Can anyone think of a possible scenario where removing the '\\[0pt]' in >> the last line would cause a problem? If not, I might send a patch in the >> next few days. (I'm afraid that going back to abusing >> replace-regexp-in-string. I can't think of any other more elegant >> solution...). > > In such scenario, we may technically violate what users ask us to do: > > #+begin_verse > I really want newline here\\ > #+end_verse I'm not sure if users asked for that specifically. You want a new line when there is a new line. This makes sense: #+begin_verse I really want newline here\\ blah... #+end_verse This does not: #+begin_verse I really want newline here\\ #+end_verse For LaTeX it is the same as this: #+begin_verse I really want newline here #+end_verse But this specifically alters the expected result in LaTeX, modifying the space after the environment: #+begin_verse I really want newline here\\[0pt] #+end_verse What is the cause? I don't know. But it happens. Best regards, Juan Manuel