From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id MLydERliumXQLAEAqHPOHw:P1 (envelope-from ) for ; Wed, 31 Jan 2024 16:07:05 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id MLydERliumXQLAEAqHPOHw (envelope-from ) for ; Wed, 31 Jan 2024 16:07:05 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=CYhSB1ZB; 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=1706713625; 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=f3z3kPgH2ALDVm7YoWrx/Nw9q2ZTPU6saadFW0MfLgA=; b=f/zUMFTJ174WMQ/M7nsAiLtSJkGVFFPNreWymyAstLlw7XtrxH6nqIgP/qR2sMhtsttP76 Az7QQMCF6zMjjqwAW35FYFg1ToA12ITZQg28dIIDR1U8a1D0TSBvlQOYeHyaT2M+IvXnfs vVnE/hnvQBDAAZqL5JhBPOnFQLvi4i+iEZVYon9UtIcPWLsQyCw+ZYXXKROM+nyr4AdjWn TkgeKKkyMplSOl0LpeCC/F3cyNlUbz7oGOm/Ngc/jvlB0kxyLWv1GvVPRZE3YDcC23XZs4 Y9EmEBSdOib+rr8m+M6ZU1wDDL3RIqMv0mya7xVb6Fy67+oLMeacAvoEE2FTiw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=CYhSB1ZB; 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=1706713625; a=rsa-sha256; cv=none; b=k5oFN4D7SLeegujNAzNmq8+P1ej+v2JR4kJJOMwLvHA2o+fy2ZbUxhhh1QPmpH9PahNhas eG/VM2crsiyDeOsQsRTjIvP3po4xfGOxjmPbzpcyz88hBTPli8KySCmvpYPQFJjqUODtY2 UgVQY0eZCbUnh3oEQgA1EGSvLJ1ipYGb0Ab/yLCly5qyVRiuZldHbZpywuV3eEGvIM5tVt QLg1WvpFgcX7M1FAtcJd9VIP2Br3//XsM/4wGcm+TMHqqCpS3hp8+IZh2Qs/qnsQNpL0V7 1Fr7AqOz1ysDdUfaR7G0m9ShfE43E6uRoEf/DuNhUv3PDVvtCXHK97lP9qBGAA== 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 36CA031C65 for ; Wed, 31 Jan 2024 16:07:05 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rVCAT-0000XI-3P; Wed, 31 Jan 2024 10:06: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 1rVCAO-0000VL-K6 for emacs-orgmode@gnu.org; Wed, 31 Jan 2024 10:06:20 -0500 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 1rVCAI-0003Op-Vw for emacs-orgmode@gnu.org; Wed, 31 Jan 2024 10:06:17 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 4FFE1240029 for ; Wed, 31 Jan 2024 16:06:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1706713572; bh=Ofd5l0PAjYh9gmkylWw9OIRey+gK1/a+PehHpnzREHQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=CYhSB1ZBRNtQD+VQyqkruKGpbHpdChPrQ+r3H2i2fG301/Dwhw7JZzMj6jhyWZ5sG UU/XCCZJHVf4qE1W0YzK4bZ3HdXd8pq8qUlqYGj6rIQBvHlLYdjJifj4bqPbtmHVEM PuMtR+ZR6XUDF/zEPIrPMUyDtC3I5CI7+6HxL+YjQi90LOUDNyTfh0fkY10nTbUnZy YN0vN3eCS78faY1+++6huiJmtOLS+KBgRUj/c5g8B2UvY4OlxXx8CBzORjfYm330jV MZlakpP4gq0eo5f79tB2RQ/fwoGEtTzO2TGcwUVl3gOiQqyAD4o71P0zHGRSR0DiLQ ADvu+NfQRiO+w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TQ52q39B8z6txv; Wed, 31 Jan 2024 16:06:11 +0100 (CET) From: Ihor Radchenko To: Max Nikulin Cc: emacs-orgmode@gnu.org, Juan Manuel =?utf-8?Q?Mac=C3=ADas?= Subject: Re: [possible patch] Remove the '\\[0pt]' string from the last line of a verse block in LaTeX export In-Reply-To: <9ca74051-90b1-498f-92db-3d0730c1bc56@gmail.com> References: <874jfvjo2k.fsf@posteo.net> <87cyu5uv7c.fsf@localhost> <87y1ck5gi8.fsf@localhost> <9ca74051-90b1-498f-92db-3d0730c1bc56@gmail.com> Date: Wed, 31 Jan 2024 15:09:42 +0000 Message-ID: <87r0hx8rpl.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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_H4=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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.88 X-Spam-Score: -6.88 X-Migadu-Queue-Id: 36CA031C65 X-Migadu-Scanner: mx12.migadu.com X-TUID: XQe7BUcj7Vo4 Max Nikulin writes: >>> I would suggest to strip leading and trailing newlines before processing >>> of the block content. >>=20 >> May you elaborate? > > I expect that > > #+BEGIN_VERSE > > > From fairest creatures we desire increase, > That thereby beauty=E2=80=99s rose might never die, > > > > #+END_VERSE > > is exported to > > \begin{verse} > From fairest creatures we desire increase,\\ > That thereby beauty=E2=80=99s rose might never die, > \end{verse} > > and internally at some point it is represented as > "From fairest creatures we desire increase,\nThat thereby beauty=E2=80=99= s rose=20 > might never die," > without leading and trailing newlines. This has nothing to do with what happens when exporting verse blocks. If you try a simple example like #+options: toc:nil * Heading First. Foo #+BEGIN_VERSE From fairest creatures we desire increase, That thereby beauty=E2=80=99s rose might never die, #+END_VERSE Bar Foo #+BEGIN_VERSE From fairest creatures we desire increase, That thereby beauty=E2=80=99s rose might never die, #+END_VERSE Bar you will see that lading and trailing spaces are insignificant: \section{Heading} \label{sec:orgc54e19b} First. Foo \begin{verse} \hspace*{1\fontdimen2\font}From fairest creatures we desire increase,\\ That thereby beauty=E2=80=99s rose might never die,\\ \end{verse} Bar Foo \begin{verse} \hspace*{1\fontdimen2\font}From fairest creatures we desire increase,\\ That thereby beauty=E2=80=99s rose might never die,\\ \end{verse} Bar --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at