From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id gJAKA3evrGUhrAAAqHPOHw:P1 (envelope-from ) for ; Sun, 21 Jan 2024 06:45:27 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id gJAKA3evrGUhrAAAqHPOHw (envelope-from ) for ; Sun, 21 Jan 2024 06:45:27 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=YAbx5T16; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1705815926; 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=5iGSw00LbHTd+Sk5iLQUhAoi6Cbx/CgoIcBqvfBGtok=; b=c0kpg1+FKF+CRd8ISzHgMDGj7I4gbfyzmvR1SfHl1rXARQWUHnTEjBJMjrfGhLOgFZFi/E gu99QgP/kBkQPlTalcU2kFov5PzIkPpwb2VeGY4D+32DSIEBMeLsovoAcYXhwxLoNkDH0+ aJz9baln13CPeg+0qrLNXzAaUXAtxARYFuB6aq3b2p+ehuj2Gfnlclb7BCjCg5NHmj54Q3 calTj6z+71g/D0h5LkgCFoGv2LZWzu8quHUU9VnFMd7UpJbsC6Sy8RGAjcvkvmB+wS5jvq uLq3QIsocKfUlZmI3JdCi2SwbTU029Gv3zxSbQiAT1938K4T5EzsLksIYEJBhQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1705815926; a=rsa-sha256; cv=none; b=Z7Oj25xjxFc71r1XCuSBfDIoLe/f+JeFtQlqCefQtZRiwqhyujxm5lkqpI+5UQSUfJcPP0 JOgYe0CTK4qD4DsNGZzRG2nfd0u7jr6jyLuCd5zaCbZK8yGYmgMUc3GKJDn7cFjtj0kwaz H5emTkaM4KqN+0Gah/Pl1SWNHvpyL2w+LFBH7z+LVbi5QV4kXnEWT7Ws9BEEkKvey9gDpY z/ALhJcRApzx6La78Fqyp0t81Bw3p5RRd47InBf1f6pwkz74H3GJlj8xLI9Wb5QE7KnQ1V KxYL7lOa9Vxkja1J2mwT/Wec90+gpmyKJVNa43kedRXvii+FBWFTUITa7+bzOQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=YAbx5T16; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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" 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 E6C207752D for ; Sun, 21 Jan 2024 06:45:26 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rRQd2-0007Oo-B0; Sun, 21 Jan 2024 00:44:20 -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 1rRQcw-0007Ki-Kc for emacs-orgmode@gnu.org; Sun, 21 Jan 2024 00:44:14 -0500 Received: from mail-lj1-x230.google.com ([2a00:1450:4864:20::230]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rRQcv-0005Hf-04 for emacs-orgmode@gnu.org; Sun, 21 Jan 2024 00:44:14 -0500 Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2cdeb808f28so20919091fa.1 for ; Sat, 20 Jan 2024 21:44:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705815850; x=1706420650; darn=gnu.org; h=content-transfer-encoding:in-reply-to:mail-followup-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:sender:from:to:cc:subject:date:message-id:reply-to; bh=5iGSw00LbHTd+Sk5iLQUhAoi6Cbx/CgoIcBqvfBGtok=; b=YAbx5T16h5PS1Q6Itxxv7oHRU/5niK58NwfNkJ3ObLZwZCtZgmkWVDYn2qqyepagT9 +D37fPAI8fsjHke1M94P7Ci8F593CGoxdcDGUVfV8HlOMHmbix3ZSzUrDL0D4+UbzTD4 7F9OsO8e+d4NxJYTV1IhYzwf0SaOLHFCFTyocYtimUsDMyj/iGG2QAh/V9M8whvp9G0q mgftsyfd+Ex0lBL+NYVDvZLB+CPMyimVpvxHsm0Mc4iLrGhfeiUp5cfDzykhqPqiwZae pLsUOIc8H9HgVwwFDlZMUPOOEGuPP3QBUCPAgdzr+pnTH/4u4HObw/lUpq5foZ/MtjoO 9sfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705815850; x=1706420650; h=content-transfer-encoding:in-reply-to:mail-followup-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=5iGSw00LbHTd+Sk5iLQUhAoi6Cbx/CgoIcBqvfBGtok=; b=e/v1LP6gvR/8rTZsxJ7KcGNFfZZC9K0bvCLYuhdOfQI7OXS/Yix2sieQy6lo1CagV7 D2rGNYjxziCOcT/d9yuvAu/fd+OB4Gf9LyVwllJSeyhZgSwr+28O+771rK4Jt1c/Vj97 j93Lr3eTQ5A+Bq33p1TviZIafvrNQuqsVGo6/2JfpqffHdOS6BypRAI/paotRnckm1nF DyZblHKrhpjsPDhrTfMUMV7LeQMHcsavcQJ19EvarUqioLER+ogG2CyxQJVDnmJBYP2p YAr9gk/X+dqX83jrYf1eO0lrbHtM7vfcxIwDVJyBibrMIHltbvtZ9kyGRp2Ve0oi2IQs bn8w== X-Gm-Message-State: AOJu0Yx683zhypN+/JvvfyhgQwMK0BpUWELA36u9i0XSjm693/4Tebtt yp2xWgLIOUeZ2+7L9OyoM3KHSuDmp3IqntKgIn3gh5VAkZ/FDb7DuzIpaiqE X-Google-Smtp-Source: AGHT+IHFdrlTbA2ItZ9kDhGhD7VCGN2nMpEcWv1WQlJJRwOfS2eXUhKDbnJLWuOEb+oyFXY8PnfXKg== X-Received: by 2002:a2e:7306:0:b0:2cc:f5ce:de3b with SMTP id o6-20020a2e7306000000b002ccf5cede3bmr1842042ljc.25.1705815850043; Sat, 20 Jan 2024 21:44:10 -0800 (PST) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id j21-20020a2e8515000000b002ccc6f06e2dsm3008861lji.128.2024.01.20.21.44.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 20 Jan 2024 21:44:09 -0800 (PST) Message-ID: <9ca74051-90b1-498f-92db-3d0730c1bc56@gmail.com> Date: Sun, 21 Jan 2024 12:44:07 +0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [possible patch] Remove the '\\[0pt]' string from the last line of a verse block in LaTeX export Content-Language: en-US, ru-RU To: emacs-orgmode@gnu.org Cc: =?UTF-8?Q?Juan_Manuel_Mac=C3=ADas?= References: <874jfvjo2k.fsf@posteo.net> <87cyu5uv7c.fsf@localhost> <87y1ck5gi8.fsf@localhost> From: Max Nikulin Mail-Followup-To: emacs-orgmode@gnu.org, =?UTF-8?Q?Juan_Manuel_Mac=C3=ADas?= In-Reply-To: <87y1ck5gi8.fsf@localhost> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::230; envelope-from=manikulin@gmail.com; helo=mail-lj1-x230.google.com X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: 4.67 X-Spam-Score: 4.67 X-Migadu-Queue-Id: E6C207752D X-TUID: e0GTqE+qM66t On 20/01/2024 19:35, Ihor Radchenko wrote: > Max Nikulin writes: > >>>> Can anyone think of a possible scenario where removing the '\\[0pt]' in >>>> the last line would cause a problem? >> >> I would suggest to strip leading and trailing newlines before processing >> of the block content. > > May you elaborate? I expect that #+BEGIN_VERSE From fairest creatures we desire increase, That thereby beauty’s rose might never die, #+END_VERSE is exported to \begin{verse} From fairest creatures we desire increase,\\ That thereby beauty’s rose might never die, \end{verse} and internally at some point it is represented as "From fairest creatures we desire increase,\nThat thereby beauty’s rose might never die," without leading and trailing newlines. >>> In such scenario, we may technically violate what users ask us to do: >>> >>> #+begin_verse >>> I really want newline here\\ >>> #+end_verse >> >> I really want newline here@@latex:\\%@@ > > This implies that Org mode does not follow its own markup. I disagree > with such suggestion. I do not see any use case for "\\" at the last line. Perhaps it might even cause an org-lint warning. From my point of view, it is preferable to require more verbose markup in special cases to make intentions explicit.