From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: bug#34334: 26.1; org-list-make-subtree eating newline after list Date: Sun, 10 Feb 2019 23:29:55 +0100 Message-ID: <87h8db5lb0.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:34575) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gsxct-0001Rg-Hw for emacs-orgmode@gnu.org; Sun, 10 Feb 2019 17:31:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gsxcs-0000UU-Vm for emacs-orgmode@gnu.org; Sun, 10 Feb 2019 17:31:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:43640) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gsxcs-0000UG-SN for emacs-orgmode@gnu.org; Sun, 10 Feb 2019 17:31:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gsxcs-0001Lp-Ou for emacs-orgmode@gnu.org; Sun, 10 Feb 2019 17:31:02 -0500 Sender: "Debbugs-submit" Resent-To: emacs-orgmode@gnu.org Resent-Message-ID: In-Reply-To: (Felix Wiemuth's message of "Tue, 5 Feb 2019 09:52:05 +0000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Felix Wiemuth Cc: 34334-done@debbugs.gnu.org Hello, Felix Wiemuth writes: > Start with an empty buffer in org-mode and add the following content: > > * A > - L1 > - L2 > * B > > If we execute `org-list-make-subtree` on any position within the list (the two lines with L1/L2), we get > > * A > ** L1 > ** L2* B > > So the conversion "eats" the newline after the last list item. > > When having an additional newline before, it still eats the newline: > > * A > - L1 > - L2 > > * B > > After conversion: > > * A > ** L1 > ** L2 > * B > > It happens at any level in a tree, and no matter whether the list is > indented or has further levels. Fixed. Thank you. Regards, -- Nicolas Goaziou