emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug: Incorrect indentation in Org Babel list output with multiline text


From: Vikas Kumar
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/)]
Date: Sat, 8 Jan 2022 21:22:34 -0800

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]