From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id +MNgC7Bm22TZZgEASxT56A (envelope-from ) for ; Tue, 15 Aug 2023 13:51:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id qPIOC7Bm22RTPAEAauVa8A (envelope-from ) for ; Tue, 15 Aug 2023 13:51:12 +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 D5CB03955D for ; Tue, 15 Aug 2023 13:51:11 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ali79Qy6; 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=1692100272; 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=fxdVPP8DuA38kyVaRmMPfsEDJjivuMeLB8ajiatv3XQ=; b=KFtvyNcVF9gH7zp0ubWSjoKd7hSq61NDE3j8L8zzuO+3rytPiq5ePnHdsQYPpXb/S3fclf 8aDk4U5ZJDyOCN98wDAGCI0t+jR3Z/vnpRURyHbbpLm+TY4LytghehruUcW/FWWr8HPFLY OMg9rSXqTgIUWcJWa6w2LROHZvpeqS9XSBOjTz+zJFZLVlDnl9q165g7ALi8bwrUK3zXKq Pksc1hYvqUK+pFTwtE14AXFYiqMoqXudq3A+GULGoXVZJX7xE3TaX4hRNj0a1gl2lchd+D 57jKM7tDAA+R+1EEbSwCO3k7prTOHmui9PUFKwPPwEM9EnSCgVt2RV7N4v5v0A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ali79Qy6; 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=1692100272; a=rsa-sha256; cv=none; b=Nx8iJTKg+tpN6A1vaxwQ8t5Bi/zAVKK/rLGKhOmmAbpOb/yeRsrYsnO0hwkJGc7niANm5g xy08Z1N7pHjXUn8q/klNJI6KsHLCimSNhQBKTNxmfBCqIecDFcd36zDbMQEa4g7zRvTSJV /N8oy6uWbr3G3d6PznINeFqkpGC8GXCnsUp2n+W5DeQuoo//gvVMiiRxdFcQdmfqTVFAX8 l/1n7cURLFEWTZHKspG5JvD47lgFp7OgxkrQk1LHRBAvby7S6L9EWDBequ3Rap5Tl/a17c Qfy/Bop1lNGsxq8eKWAj2atBQbCrUR19ijFO0dp21cnWEgqiX41b6B0KrvHYXQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qVsZ5-0002so-Qa; Tue, 15 Aug 2023 07:50:23 -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 1qVsZ4-0002sR-HF for emacs-orgmode@gnu.org; Tue, 15 Aug 2023 07:50:22 -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 1qVsZ1-0000VD-FJ for emacs-orgmode@gnu.org; Tue, 15 Aug 2023 07:50:22 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 70EEB240027 for ; Tue, 15 Aug 2023 13:50:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1692100216; bh=48TmfxwfOI9Fo1Je7cP3qM29ABoADOwsw8BMxh1VpAg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=ali79Qy64Pij0klDCPbwmdndjtqmXZ5uWdQs06+1zfJeNsAWusOyDl1o1HBfnG/hj DFwoMg12kaoOgcH27bb8q4vc9+TMQNWTlJFUp1g6/iyWP6fMzTdbpjvb9pj4s5n63R Gw6bNqDJpWCAqqFgID6RpVIFuOITLtOag4Br7jeXuU5ZoygkdB7QAr+AXpj0Jc4JPX 9k9xCIX3dsKZiOrsJYT6xGhxHZhAyCBjj+1We7dcmmRnG+CGD8e67K4hnE3CdilY6a nzVdz+yJTmPIX6ZpQB7MXBEfYKKzmP7Q5kzy8rptbX/QybTmz6HWFGwpQZQE9mIfcm M+ER1DCSlwxOw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RQ8hl6pN8z6trs; Tue, 15 Aug 2023 13:50:15 +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: <87r0o4ipms.fsf@localhost> (Ihor Radchenko's message of "Tue, 15 Aug 2023 10:08:59 +0000") References: <87tttcml75.fsf@posteo.net> <87edkf6px1.fsf@localhost> <87350ug413.fsf@posteo.net> <87o7jgejhl.fsf@localhost> <87pm3wfvzx.fsf@posteo.net> <87il9nb62q.fsf@localhost> <871qgbb2q6.fsf@posteo.net> <874jl5526t.fsf@localhost> <87ttt59zsx.fsf@posteo.net> <877cq04rt7.fsf@localhost> <87edk5crle.fsf@posteo.net> <87r0o4ipms.fsf@localhost> Date: Tue, 15 Aug 2023 11:50:13 +0000 Message-ID: <87edk4jzii.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-Queue-Id: D5CB03955D X-Migadu-Scanner: mx1.migadu.com X-Spam-Score: -6.90 X-Migadu-Spam-Score: -6.90 X-TUID: vhSYLBpkUKpZ Ihor Radchenko writes: > Thanks! > I tested the patch with > > #+attr_latex: :literal t > > #+begin_verse > > This is just a test. > ASF.=20 >=20=20=20=20 > #+end_verse > > > and then with > > #+attr_latex: :literal t > > #+begin_verse > > This is just a test. > > ASF.=20 >=20=20=20=20 > #+end_verse > > The output is not different, which it should be, AFAIU. Am I missing some= thing? I have tried your examples and I think both give the expected result. Look at this screenshot: https://i.imgur.com/ofl8Z9f.png Note one important thing: the only horizontal spaces that are exported "literally" (ie with \hspace...) are the ones at the beginning of the line. This is the same as the old behavior, and works with both :literal and the verse environment. Spaces between words are not exported. Well, they are exported, but not as \hspace, so LaTeX resolves one or more space to a single space. It could be an interesting feature that spaces between words are also preserved, but none of the other backends do that... Actually the :literal attribute has effect only on blank lines. (Anyway, I think that without exporting the spaces between words, the :literal attribute is a bit incomplete. But if those spaces are exported, it would break compatibility with the other backends. The horizontal space before the line makes sense for verses, because these can often be indented arbitrarily in a poem. The other possibility is that the :literal attribute also exports to a verse environment. In that case, it would not break compatibility [the verse block in LaTeX would just have two "modes": one more coherent with the syntax of the verse environment and another one more similar to the behavior of the rest of the backends and the "old" verse block behavior in LaTeX export]). --=20 Juan Manuel Mac=C3=ADas https://juanmanuelmacias.com https://lunotipia.juanmanuelmacias.com https://gnutas.juanmanuelmacias.com