emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] ox-ascii extra blank before table caption
@ 2013-08-02 17:26 Rick Frankel
  2013-08-02 23:53 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Rick Frankel @ 2013-08-02 17:26 UTC (permalink / raw)
  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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-08-02 23:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-02 17:26 [PATCH] ox-ascii extra blank before table caption Rick Frankel
2013-08-02 23:53 ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).