From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mNBcOI9x2mFnUwAAgWs5BA (envelope-from ) for ; Sun, 09 Jan 2022 06:24:31 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id KO1HNI9x2mEe8wAAauVa8A (envelope-from ) for ; Sun, 09 Jan 2022 06:24:31 +0100 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 7EC4E1563F for ; Sun, 9 Jan 2022 06:24:31 +0100 (CET) Received: from localhost ([::1]:51142 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n6Qgw-0003IJ-35 for larch@yhetil.org; Sun, 09 Jan 2022 00:24:30 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60806) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n6QfR-0003Hu-CN for emacs-orgmode@gnu.org; Sun, 09 Jan 2022 00:22:58 -0500 Received: from [2607:f8b0:4864:20::a30] (port=35825 helo=mail-vk1-xa30.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n6QfP-000143-LL for emacs-orgmode@gnu.org; Sun, 09 Jan 2022 00:22:57 -0500 Received: by mail-vk1-xa30.google.com with SMTP id o12so1872024vkf.2 for ; Sat, 08 Jan 2022 21:22:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=MsQ5+cM3C198gCgIdmIuP2wxWwF4Rg38PIk7fUTmKMA=; b=NNDEA4l2ZFjCqCWHhFFlu/FE8Bypn8NDix5Ld90KZm2fsPW9F6Xxqrzim5ogpfvae5 M6tZ1VxWmhkL3n7N/sW6JU5Oh9oMi+g0Eb67ng/opAM2M2V+96tvlu75ZN+bL3z8idpi HPOxHPPp4klv6pquviT0sy7koQ2a3Dswn6QuGDJ2eC68VcXXLzJEd+XPed/wUXq1XuwK pAsKwGJpS4IBRDT4Db1X6B87q49ZmJ+1j1t1GZszvwan/FVSyKXKTEU6ntVjZTla8Bd8 J6ZFBqEQeVEow1RuXO5iGbiIRj67aMKkly4W4pCGDIf1Gm8XSyGIxaqIf57CMWaioWkI w9XA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=MsQ5+cM3C198gCgIdmIuP2wxWwF4Rg38PIk7fUTmKMA=; b=wUSz+he00gyuXTfjrpJfv5Vx6fLmI61R3fUs7Ijs7E9+Kn1YXLSGbR6VjHCg2wEQDZ JU+LvnKGc2MbGwBrMLH0u0x0pIGYJK6nARron0NFhf6oXJlS1jgi35xaSalvpgk1JoHI s0ZVgLl1it7RSw/HZ63woadTq8lrc1jA1PEhQ0kkcLQHwlZxgtvNWtHinrDYCjQc1dO6 6SK8ST3aBTySdyBOOXdqf02DozxNKKiYh/aHMc/z5G3UGH90AH+JFRdS+Y66VE6bnhZU sfAbEW+h2WgT3nmi8tauGXpFUzaek8T/x//NiorJnc4HIlM32LwNe0rgUsMc1KeO12/y a4vw== X-Gm-Message-State: AOAM533vJ7Vjp4OlXrsMCGx9l6vXmi+S8dIoLXUsK9uidqJAL/t/6cBn +/1YfPTcx83y2rTppoVkIAVa1tUBwnLZEFK+QKvZcpm2Xt0= X-Google-Smtp-Source: ABdhPJzktkhCuKdQt3MC57f1e1JG4+NLF+KA+6fycEmHQk/IUjHjNsItXUKBmylAtwJTx8SPn69ztAGG6+NX/C+97aY= X-Received: by 2002:a1f:7348:: with SMTP id o69mr25155001vkc.2.1641705765343; Sat, 08 Jan 2022 21:22:45 -0800 (PST) MIME-Version: 1.0 From: Vikas Kumar Date: Sat, 8 Jan 2022 21:22:34 -0800 Message-ID: Subject: 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/)] To: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="000000000000f8152a05d51f680f" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::a30 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::a30; envelope-from=kr.vikas@gmail.com; helo=mail-vk1-xa30.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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" 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=1641705871; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=MsQ5+cM3C198gCgIdmIuP2wxWwF4Rg38PIk7fUTmKMA=; b=Vrgdi1LxZStbsX7sUJYFTqaaT1su5xReTCPG925tpnsIFSJBT1CXTyYVukscF97EENgEvw NIG45ntI9GbCjZdPJeaKHdpNp/VR/DsRR0zfc3OhigZHy8QfMt/AD66AKR/ojIu43MF0VG YgdktbBfn/LdUWU9KxNrFhjSi/Rp7Gxn/Hki0d93qhAO95q0SQ0suAKTu6S/L1Gb/zMGVq cSJkOQPKoT5HGZThV3S0CFf7aI18qGRhm/szx2xXJm7lxi3ku0mi73qOF8Vra8LX3bxt7M z8EYdkchugZQtQRT8yscWJIPwuH3nJpGHanWN0+9CxbEge9oxltqbYGYK0SAbg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641705871; a=rsa-sha256; cv=none; b=lAnwzjSuVGtoWvCcr1IwMvEQLN9zzs9nxtKsmvJX8mF4fP2Ld67m5U+MYKlp9eVUrAMsxQ P4mgHdVowmoVFIuXypLbncY/wyB9Auv6/gomONzfALXDw7DyJk+O31jHi8gUJdh9kZHNhH XnvBGBSAIEM/tAwadNiwtOMLixxISXRK2M2Ho9r4ocyMf8cgjHXbb6LDSYa7yXit6juwT2 jq8AKx9H9UlAb20k/DyzCG6NrP/p9XASOB9GS7bT5bHzwZAGX2C+Eavekmjg9/HwBs1YBp j2yp1AWn/k4/tV3O9JVfiYleJ1/U6QyAkCAaf55iXSo1Rh5ksklfWOmeJpw3Mw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=NNDEA4l2; dmarc=pass (policy=none) header.from=gmail.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: -4.31 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=NNDEA4l2; dmarc=pass (policy=none) header.from=gmail.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: 7EC4E1563F X-Spam-Score: -4.31 X-Migadu-Scanner: scn1.migadu.com X-TUID: +8Tl4qK7CrhX --000000000000f8152a05d51f680f Content-Type: text/plain; charset="UTF-8" Hello, When I use ':results value list' in an emacs-lisp source block it looks like Babel does not indent list items correctly when one of the items is a multi-line text. To reproduce evaluate the following code block: #+begin_src emacs-lisp :results value list '("Foo1\nBar1" "Foo2\n\nBar2") #+end_src It outputs: #+RESULTS: - Foo1 Bar1 - Foo2 Bar2 Expected output: #+RESULTS: - Foo1 Bar1 - Foo2 Bar2 Since the second line of the first item is out of indentation, this makes the output list actually finish after the first line of the first item. Re-evaluating the block then only removes the first line of the previous output. My Emacs and Org mode version: Emacs : GNU Emacs 27.2 (build 1, x86_64-apple-darwin20.6.0, Carbon Version 164 AppKit 2022.6) of 2021-11-16 Package: Org mode version 9.4.4 (release_9.4.4 @ /Applications/Emacs.app/Contents/Resources/lisp/org/) -- Thanks, VIkas --000000000000f8152a05d51f680f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

When I use ':results value l= ist' in an emacs-lisp source block it looks like Babel does
n= ot indent list items correctly when one of the items is a multi-line text.<= /div>

To reproduce evaluate the following code block:

#+begin_src emacs-lisp :results value = list
=C2=A0 '("Foo1\nBar= 1" "Foo2\n\nBar2")
#+end_src

It outputs:
=
<= div>#+RESULTS:
- Foo1
Bar1
- Foo2

Bar2

Expected output:

#+RESULTS:
- Foo1
=C2=A0 Bar1
- Foo2

=C2=A0 Bar2
=
Since the second line of the first item is out of indentatio= n, this makes the output list actually
finish after the first lin= e of the first item. Re-evaluating the block then only removes the first li= ne
of the previous output.

My Emacs and = Org mode version:
Emacs =C2=A0: GNU Emacs 27.2 (build 1, x86_64-a= pple-darwin20.6.0, Carbon Version 164 AppKit 2022.6)
=C2=A0of 2021-11-16=
Package: Org mode version 9.4.4 (release_9.4.4 @ /Applications/Emacs.ap= p/Contents/Resources/lisp/org/)

--=C2=A0
=
Thanks,
VIkas
--000000000000f8152a05d51f680f--