From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id YFGdM96vUmP+mwAAbAwnHQ (envelope-from ) for ; Fri, 21 Oct 2022 16:42:38 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id cKy+M96vUmNYZQAA9RJhRA (envelope-from ) for ; Fri, 21 Oct 2022 16:42:38 +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 7DE9EDDE1 for ; Fri, 21 Oct 2022 16:42:38 +0200 (CEST) Received: from localhost ([::1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oltEI-0001F0-HJ for larch@yhetil.org; Fri, 21 Oct 2022 10:42:35 -0400 Received: from [::1] (helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oltEI-0000Qa-9n for larch@yhetil.org; Fri, 21 Oct 2022 10:42:34 -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 1oltEB-0000QG-A1 for emacs-orgmode@gnu.org; Fri, 21 Oct 2022 10:42:27 -0400 Received: from mr85p00im-ztdg06021101.me.com ([17.58.23.180]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oltE2-0001Qe-BQ for emacs-orgmode@gnu.org; Fri, 21 Oct 2022 10:42:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1666363337; bh=DNF0VKK3W5R5baXo80RZJcCE2tv9q0Bh75pyYFUrV+c=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=ucQLaopuvS0hdHFTVdIZdrWQiZcFE1nSFICrvHbONtgw9/U9ULPfLkDVEQmvH/VZw 0Unr4kr5LZrT8PaVT3rtUd3KCOfORZdhsmPF2pEC/ElNE4R7qcStN9XeONDw+5lChT rj1n78oOckKW9l44sZ/i97laxz8GYvVO76r4RcOWGjk8M0ZiAsxKTIlaC8Ixcq5a2i /A7qCjzdM0mLpDzcI4sQtImELCuGxxfw1krONZN86zZJ1hAuHqU5f96/S5Nji3Qa1F G3g0JIrEyhMVLUc25cAdYpj3sGFEEY0Rlk3yql8uQ0Jl0VB/CRqDyYAisWAMC72K0n wEzFIwhj0CgBA== Received: from Rudolfs-MacBook-Air.local (mr38p00im-dlb-asmtp-mailmevip.me.com [17.57.152.18]) by mr85p00im-ztdg06021101.me.com (Postfix) with ESMTPSA id DB0188012C; Fri, 21 Oct 2022 14:42:15 +0000 (UTC) From: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= To: Ihor Radchenko , Vikas Kumar Cc: emacs-orgmode@gnu.org Subject: [PATCH] Re: Bug: Incorrect indentation in Org Babel list output with multiline text [9.4.4 (release_9.4.4 @ /Applications/Emacs.app/Contents/Resources/lisp/org/)] In-Reply-To: <878rl965sh.fsf@localhost> References: <878rl965sh.fsf@localhost> Date: Fri, 21 Oct 2022 16:42:12 +0200 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Proofpoint-ORIG-GUID: OtUJ_3Uq0vfkoLVW0-n-h9IxQnDf_TEZ X-Proofpoint-GUID: OtUJ_3Uq0vfkoLVW0-n-h9IxQnDf_TEZ X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.425,18.0.572,17.11.62.513.0000000_definitions?= =?UTF-8?Q?=3D2022-01-14=5F01:2022-01-14=5F01,2020-02-14=5F11,2021-12-02?= =?UTF-8?Q?=5F01_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 mlxscore=0 clxscore=1011 bulkscore=0 adultscore=0 mlxlogscore=999 malwarescore=0 spamscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2210210088 Received-SPF: pass client-ip=17.58.23.180; envelope-from=salutis@me.com; helo=mr85p00im-ztdg06021101.me.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H2=-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" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666363358; 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=DNF0VKK3W5R5baXo80RZJcCE2tv9q0Bh75pyYFUrV+c=; b=fRW6APdKJ0loPZ6YLe4JAIMSAvlwawzXLPLx2DYp08wN1TjRSIh1NYzFG7BiRvRftL1Q9k CymilBrFWTAO2F3GEjDcaeNPAcsHarukOhdaqijCresmMF42r4bfRBYnKUiybPC9mt88QA qN55OHn1Ibuft47mwrBqH7drrAz0nN4km8qOTmiCwsAln5yGaddSThm83nVur4QuwmlWSS 4OR6mAagNqO6gMbgqFD7YthaZZpuJVOXYDnDCx9Jig7nABv3XcR8d9hi2g2gk5zCH3NOop tXVUTLpgsnyIL0stxkPxw+0FjnYeDZmxSSpoxlO+K/qJRHU3hD5td3T5Z1fl0Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666363358; a=rsa-sha256; cv=none; b=hDtTOU5vc7hxv2kyJLJfjw930pzTesQekuwUXazwN6neYA4rWLN41FH9DbF38HzJLohDbG I3qC9FJmM5MvfrgBBuACHtq0w1gMNM2zI3ou2GS2KZDMf/DUHPfkx10SyygDYhdQfAMNKr hvUivIWvbYq1vgaTvDCQ9I+0GqZcILTcAgLJFZV65tgVTLRfkULDhvnH0WxeBx/jsxzKYr M24s/beTcHVffRxOF/AvkcMGdZpfBod6TzB9fHpl1ZM2Hie7dvgVR2Rtco052sYAtS+D19 sT/gKcPLPfJA7vApDnXqEhnXQ1Kvq3TlB8TAErPgom8rDNOjhEVh0B/4HBSnlg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=me.com header.s=1a1hai header.b=ucQLaopu; dmarc=pass (policy=quarantine) header.from=me.com; 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" X-Migadu-Spam-Score: -2.54 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=me.com header.s=1a1hai header.b=ucQLaopu; dmarc=pass (policy=quarantine) header.from=me.com; 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" X-Migadu-Queue-Id: 7DE9EDDE1 X-Spam-Score: -2.54 X-Migadu-Scanner: scn1.migadu.com X-TUID: 3i1aGve66ekr --=-=-= Content-Type: text/plain Ihor Radchenko writes: > Applied onto main. I wrote a regression test, so that we do not need to fix this problem again next time. Please see the attached patch. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-test-ob-Test-indentation-of-multiline-text-in-list-o.patch >From 9cb3c86abcc1fe983b5e6d2ff7a80c1d714fb126 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rudolf=20Adamkovi=C4=8D?= Date: Fri, 21 Oct 2022 16:26:33 +0200 Subject: [PATCH] test-ob: Test indentation of multiline text in list output * testing/lisp/test-ob.el (test-ob/org-babel-results-indented-list): Add a regression test for the recent change to ob-core list formatting in e7005787993f521f76e99f00e8a04d87703c493f. --- testing/lisp/test-ob.el | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/testing/lisp/test-ob.el b/testing/lisp/test-ob.el index 4ac278faf..4beaecf7b 100644 --- a/testing/lisp/test-ob.el +++ b/testing/lisp/test-ob.el @@ -1175,6 +1175,29 @@ trying to find the :END: marker." (org-babel-execute-src-block) (org-babel-execute-src-block))) +(ert-deftest test-ob/org-babel-results-indented-list () + "Test that :results value list indents multi-line items correctly." + (should + (string= "- Foo1 + Bar1 +- Foo2 + + Bar2 +" + (org-test-with-temp-text + "#+begin_src emacs-lisp :results value list +'(\"Foo1 +Bar1\" + \"Foo2 + +Bar2\") +#+end_src" + (org-babel-execute-src-block) + (org-forward-element) + (org-narrow-to-element) + (delete-trailing-whitespace) + (buffer-string))))) + (ert-deftest test-ob/file-desc-header-argument () "Test that the :file-desc header argument is used." (org-test-with-temp-text "#+begin_src emacs-lisp :results file :file-desc bar -- 2.38.0 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Rudy --=20 "Be especially critical of any statement following the word 'obviously.'" -- Anna Pell Wheeler, 1883-1966 Rudolf Adamkovi=C4=8D [he/him] Studenohorsk=C3=A1 25 84103 Bratislava Slovakia --=-=-=--