From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Porter Subject: Re: Regarding collapsing blank lines between headlines Date: Wed, 19 Feb 2020 22:29:19 -0600 Message-ID: <877e0hzxsw.fsf@alphapapa.net> References: <20200219093828.GF7788@volibear> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:46640) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j4dSp-0001y3-2x for emacs-orgmode@gnu.org; Wed, 19 Feb 2020 23:29:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j4dSo-00009e-4z for emacs-orgmode@gnu.org; Wed, 19 Feb 2020 23:29:27 -0500 Received: from ciao.gmane.io ([159.69.161.202]:35222) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j4dSn-000096-VS for emacs-orgmode@gnu.org; Wed, 19 Feb 2020 23:29:26 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1j4dSm-000W4o-8k for emacs-orgmode@gnu.org; Thu, 20 Feb 2020 05:29:24 +0100 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-mx.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Hi Russell, This is not exactly what you asked for, but here's some code that ensures blank lines exist between headings and entry content. You could modify it to remove excess lines without too much trouble. https://github.com/alphapapa/unpackaged.el#ensure-blank-lines-between-headings-and-before-contents