ob-core.el: Fix indentation of multiline text in list output

* lisp/ob-core.el (org-babel-format-result): Use `org-list-to-org'
instead of `org-list-to-generic' to format result in Org list.

The problem was in formatting a multiline text result into an Org
list.  Additional lines of a list item should be indented with the
first line of the item.  The method used for this
formatting (`org-list-to-generic') does not add the extra indentation
to additional lines of an item.  Using `org-list-to-org' instead fixes
the problem.

TINYCHANGE
This commit is contained in:
Vikas Kumar 2022-01-09 00:12:48 -08:00 committed by Ihor Radchenko
parent 85ab64c2b3
commit e700578799
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 1 additions and 1 deletions

View File

@ -2442,7 +2442,7 @@ INFO may provide the values of these header arguments (in the
((member "list" result-params)
(insert
(org-trim
(org-list-to-generic
(org-list-to-org
(cons 'unordered
(mapcar
(lambda (e)