From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id YKQhNNAo0WSFbAAASxT56A (envelope-from ) for ; Mon, 07 Aug 2023 19:24:32 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id eOIWNNAo0WQFeAAA9RJhRA (envelope-from ) for ; Mon, 07 Aug 2023 19:24:32 +0200 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 3A759368AD for ; Mon, 7 Aug 2023 19:24:32 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="CF7K+IS/"; 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=1691429072; a=rsa-sha256; cv=none; b=WQtgJki/lOlUge3klGXNWKkdAOgx6LCH4/ehT1TxO92HWEYlKSoXnz2z+G7ukesPOzKSoU hE/GTX1R/g3Ed3F2PtZc2mpcfKJRHckFqVmBqG6Znog+ioiPdowtzhGaiidVJJD1XUlgLl BfcxKM1wVkLlivWU6bnDu9StbhnQmmnA/hnm1NILqCuoQXIs2vNB7rulYqN8NutX7QWXE0 s5mwO6svnbqZYttqN4ZvHQnAykgLmQbhQASg4hDsEaX4uYleILsK00VFCQR6/smmep5MJg ChG2eyEfyFB3Ns6/EcVOJPipH42KYoC7W7yWOpngVLFypxpeVUWsFqnXTaeu4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1691429072; 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=Gj2S/NeSLaYFBj3IOoZj0lJlSkOYNzOIg2oidsNECDI=; b=TheTRc/Df6MAWJeHxFYLYbHGY6EJByEZLEcf0RricCMqWwRFMc6VJgO3LyLuN2BhlPeT7H jPFPQWa938CmQCXTGqKqG+fHvA+5/7qem4IS8t0XBEjTyIUZPiuXSLg5goCc1lf2x4wu99 4X+LvJ6uJUYxc5afjSQkplqNmhTLpMCDWgSlXskh9x61AxHCM+62W8kSDJtpoHTec5S7dK qhjyFje+a3q2ABt/Je3h6h0jcTBqs2mieS2B41ut6FEvMJiUamkSL2nCm2ve2PQ8zrUq5p d9uNSr1lVaFQMsX+SLlG9V72M/VkFhQPU9UOzgSYtBbZq8QPuXVsHRanFkktwA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="CF7K+IS/"; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qT3xJ-00057V-PN; Mon, 07 Aug 2023 13:23:45 -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 1qT3xI-000576-73 for emacs-orgmode@gnu.org; Mon, 07 Aug 2023 13:23:44 -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 1qT3xF-0004qQ-UM for emacs-orgmode@gnu.org; Mon, 07 Aug 2023 13:23:43 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id D0BDD240028 for ; Mon, 7 Aug 2023 19:23:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1691429017; bh=4maZTP63h9xUcuxaRutBvI8giz0b1O9Vella8eh8dSE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=CF7K+IS/9y5US1yo+Hs/lWxkSj7kwg5SWMS+J89TmIOp1mFKJ/wZwCAIfVbbHohtD YTR0QJEBY8WKiZgbQ+slaUaDjzNAXnQ9NkikPYjyrjPWf2vlpt8tbxrS/++izy9CWW 5KoCPqgDJ3bq0DNW3AjqsAqsywIzzsYmqL6TY/jROEq64jSv6M3BfagUduyOJxSZkz dKyl3J5RLf/+NlxIkfXqT6N2ZV/PXnaMh271H7tgc0fpXDQZaKq4rLz+nSTxXrZ1GO Bofy+fU0jji6wYNhepTKSb23x35Re1+FOWOhJz55edrcJR0uzMUyMo/6/oWZuBodMj 34WeH2eN7Ys6Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RKNT52GdWz9rxF; Mon, 7 Aug 2023 19:23:37 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Ihor Radchenko Cc: orgmode Subject: Re: [patch] ox-latex.el: fix blank lines behavior in verse block In-Reply-To: <87edkf6px1.fsf@localhost> (Ihor Radchenko's message of "Mon, 07 Aug 2023 11:40:58 +0000") References: <87tttcml75.fsf@posteo.net> <87edkf6px1.fsf@localhost> Date: Mon, 07 Aug 2023 17:23:36 +0000 Message-ID: <87350ug413.fsf@posteo.net> 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=maciaschain@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_H5=0.001, RCVD_IN_MSPIKE_WL=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: 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: -8.91 X-Migadu-Scanner: mx2.migadu.com X-Migadu-Queue-Id: 3A759368AD X-Spam-Score: -8.91 X-TUID: L0ZxM+bS26+0 Ihor Radchenko writes: >> Rationale for this patch: the treatment of blank lines in >> `org-latex-verse-block' is inconsistent with the syntax of the `verse' >> environment, both the one that includes LaTeX and the one provided by >> the `verse' package as a replacement for the former. >> ... >> So, after this patch: >> >> =E2=80=A2 Any blank line before and/or after the content is removed; >> >> =E2=80=A2 One or more blank lines between stanzas are exported as a sing= le blank >> line, leaving the previous final verse without the linebreak mark >> `\\'; >> >> =E2=80=A2 When verse numbering is enabled via the `:lines' attribute (fo= r the >> `verse' package), the last verses of each stanza are marked with >> `\\!', according to the verse package syntax (this was not necessary >> with the previous behavior). > > I see nothing that would prevent merging this patch. > However, I believe that removing blank lines before/after content is > something we may want to do in other built-in backends as well. WDYT? I think you're right. My impression is that the blank lines before/after content is not a desired feature, but rather a consequence of substituting line breaks to create the space between stanzas. I think the space before/after is better removed because it doesn't make sense and adds unnecessary direct formatting[1]. Maybe it could be changed to `(org-trim contents t) in all cases, like in this patch? [1] However, the horizontal 'verbatim' space that can be added before each line/verse seems like a great feature to me, since verses can also be indented arbitrarily. This block it's a gem, and it has some really cool features, not just to quote poetry. Best regards, Juan Manuel=20