From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cNEmM+nZ3WFsLgEAgWs5BA (envelope-from ) for ; Tue, 11 Jan 2022 20:26:33 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id yLGwL+nZ3WHOcAEAauVa8A (envelope-from ) for ; Tue, 11 Jan 2022 20:26:33 +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 6E35238DD8 for ; Tue, 11 Jan 2022 20:26:33 +0100 (CET) Received: from localhost ([::1]:51260 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n7Mmu-0005FF-AM for larch@yhetil.org; Tue, 11 Jan 2022 14:26:32 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34074) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7MQB-00058I-I6 for emacs-orgmode@gnu.org; Tue, 11 Jan 2022 14:03:03 -0500 Received: from [2607:f8b0:4864:20::f30] (port=40945 helo=mail-qv1-xf30.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n7MQ9-0000Xd-VB for emacs-orgmode@gnu.org; Tue, 11 Jan 2022 14:03:03 -0500 Received: by mail-qv1-xf30.google.com with SMTP id q3so299014qvc.7 for ; Tue, 11 Jan 2022 11:03:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=0yB9CbAJOWGlsefQ7rKeTLN8ziqpx4qEwxJOcIfBCDk=; b=PrhSQMVcd9MDxganSuRjmtduIbCKe34wfvX76hRbpFYV1gMkTmJXZrZ0/hVjUSuPZH lX8ud0ECn5rS7f7JUlq+foKEd4tOQo2E3eCvxfu5K+JSj4GfWPy7ibZYliP+YNOFfihm T7Hbb1A8PBUw8NlkQovOE9rYnJxySPGtPv0piKoEpOrBpiHIT4FKRDglKOxFMGhLxb/F IhqFesCyvNiMZS0CsafFyvuWz+dU96MIZyL5kzYq2E6nQ2pubiNRwJ7uwuFn/cymXcXg Ph1GOjBlFxVQyAtdZwEd1XsKzaHcaprEl4kfk0q3N3rhaG3JHtIiT36ncHVZtqvDhhL6 ehMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=0yB9CbAJOWGlsefQ7rKeTLN8ziqpx4qEwxJOcIfBCDk=; b=BvRoWlwn8+T36IlXXfogCIq49Nx/NhTSH3Heri5q2IWz8SmVfZA0ZXuirDjZIYmMX1 KCd1kADXm6Si6HzAQO1UOrjyJlYXFayXCW/bsiGVqCDhIzhOdsN2C8gYhOOyBuewhPKV wOjFGkS5is0TzAa6AJUlOStCQTQcd2awLh73m0kCtLn2ywp1FNKsEQ9k3YGVbJf78DG6 MYg3o6+dsF9VU7l4iWw7c6rS8s/h46NmCbUKEGL6Wxx3wtQ0BQvxsvlvzrGyfR1Jlraq iLlgMdynqQzqkvxbF0MNK3udQf8eSNhsFmJK5KMqUY+AZd0Tyw1JFykW7erLBZA3dnXr c3qg== X-Gm-Message-State: AOAM533yAHTuDExpddpiEPjyINEciwB45SdgR2liTLgKC076E1KQtGeE qtvEf1RjOAN5THl+gWpP/VFPvK2Ld7sSFxLz1BiJqX5Z X-Google-Smtp-Source: ABdhPJxARL5sJAtA97tT8PvWBR4gsw6/OMxNlfU3fEevGIZ/L1theOPANIbFaeWYxuehYnzxqrfHPKh7dgGOAud53jM= X-Received: by 2002:a1f:2788:: with SMTP id n130mr3127678vkn.37.1641927330948; Tue, 11 Jan 2022 10:55:30 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Vikas Kumar Date: Tue, 11 Jan 2022 10:55:20 -0800 Message-ID: Subject: 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/)] To: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="0000000000004ee97d05d552ff95" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::f30 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::f30; envelope-from=kr.vikas@gmail.com; helo=mail-qv1-xf30.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=1641929193; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=0yB9CbAJOWGlsefQ7rKeTLN8ziqpx4qEwxJOcIfBCDk=; b=pMlE6a9i630WwceTTIkXuwvxziMr/PIu2zaiUIzGfXnhcJimY3ISGnVGSfialIdMoE3+iA 162M5PD+IaQGd+tBus+eyuz8fRSpfRfbBw/f5qyqDfPw8AHyqzSRy/h8v96NDyeL6HLix8 9G1z0zpHTwg2sCVsKF9VyGU0mttYikZLJnVsJjxIUrNpYjty8wIzeOHnWpLKvLiEwuw0em miu3sSa3RM9RTPrrrBwoq3qlG+RYDcnQ89JkQbe+K5VH6nkgO2SYlIWycv0WBfdOpF81jX ayQ88tNSBcFy896oHV3W9/VZfcyOo47QEWcmgWljomBcisk4OaE8f+JHnXaFng== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641929193; a=rsa-sha256; cv=none; b=M1JAu2JGYLi0m4VO0ptk+1OAcMbW8aJyZVBtCwnnL/+KUBQ7vqTXMNxQNeZOl+EekKxCV8 L5zYJTuNYYkl9xrT2X9dH33x/Obot1SCc308PEcYg1noE2LLY99ba4wxU0nzpGuiO6+pR7 IWZ+CTRAC7wz1UVk513PkeRGCR1EgHaLuy99CPT8GIIDrR75jQNO3TcipxX0V9FDoJQjg0 WLFZM5tZJfLEHW4JCLt7kD8U2XJDlVfAPR7NIs6JDfA9kErkLKCDyHi4hYy/NjXrokfnD1 PQmGG0aLNC6eBeprSDdW5zZ3TABLk67QsP6s2Qi1VdOw/y2r9oHi24aVwDWPKA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=PrhSQMVc; 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.32 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=PrhSQMVc; 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: 6E35238DD8 X-Spam-Score: -4.32 X-Migadu-Scanner: scn1.migadu.com X-TUID: FGS/Jz+Uamyh --0000000000004ee97d05d552ff95 Content-Type: text/plain; charset="UTF-8" Hello, can anyone take a look at this problem and the patch? -- Thanks, Vikas On Sun, Jan 9, 2022 at 12:42 AM Vikas Kumar wrote: > Here is a patch with the fix. > > -- > Thanks, > Vikas > > On Sat, Jan 8, 2022 at 9:22 PM Vikas Kumar wrote: > >> 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 >> > --0000000000004ee97d05d552ff95 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello, can anyone take a look at this problem and the patc= h?

--=C2=A0
Thanks,
Vikas

On Su= n, Jan 9, 2022 at 12:42 AM Vikas Kumar <kr.vikas@gmail.com> wrote:
Here is a patch with the fix.
=
--=C2=A0
Thanks,
Vikas

On Sat, Jan = 8, 2022 at 9:22 PM Vikas Kumar <kr.vikas@gmail.com> wrote:
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 o= f the items is a multi-line text.

To reproduce eva= luate the following code block:

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

It outputs:

= #+RESULTS:
- Foo1
Bar1
-= Foo2

Bar2

Expec= ted output:

#+RESULTS:<= /font>
- Foo1
=C2=A0 Bar1
- Foo= 2

<= font face=3D"monospace">=C2=A0 Bar2

Since the second line of the first item is out of indentation, this m= akes the output list actually
finish after the first line of the = first item. Re-evaluating the block then only removes the first line
<= div>of the previous output.

My Emacs and Org mode = version:
Emacs =C2=A0: GNU Emacs 27.2 (build 1, x86_64-apple-darw= in20.6.0, Carbon Version 164 AppKit 2022.6)
=C2=A0of 2021-11-16
Packa= ge: Org mode version 9.4.4 (release_9.4.4 @ /Applications/Emacs.app/Content= s/Resources/lisp/org/)

--=C2=A0
Than= ks,
VIkas
--0000000000004ee97d05d552ff95--