From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rick Frankel Subject: [PATCH] ox-ascii extra blank before table caption Date: Fri, 02 Aug 2013 13:26:58 -0400 Message-ID: <70e2702e39e66541841cc2bc36ab69ce@mail.rickster.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56799) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V5Lsb-0006W0-LI for emacs-orgmode@gnu.org; Fri, 02 Aug 2013 16:23:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V5J7y-0006BG-RH for emacs-orgmode@gnu.org; Fri, 02 Aug 2013 13:27:06 -0400 Received: from [204.62.15.78] (port=60580 helo=mail.rickster.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V5J7y-0006B9-KG for emacs-orgmode@gnu.org; Fri, 02 Aug 2013 13:26:58 -0400 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode ox-ascii is putting a blank line between a table and a following caption. It is not doing this for listing captions so, IMHO, it is a bug. Here is a (very small) patch which fixes the problem. diff --git a/lisp/ox-ascii.el b/lisp/ox-ascii.el index 59d0152..3baf4bd 100644 --- a/lisp/ox-ascii.el +++ b/lisp/ox-ascii.el @@ -1658,7 +1658,7 @@ contextual information." (t (org-remove-indentation (org-element-property :value table)))) ;; Possible add a caption string below. (when (and caption (not org-ascii-caption-above)) - (concat "\n" caption))))) + caption)))) rick