Browse Source

ox-ascii: Remove spurious new line between a table and the caption below

* lisp/ox-ascii.el (org-ascii-table): Remove spurious new line between
  a table and the caption below.

Thanks to Rick Frankel for reporting it and providing a patch.
Nicolas Goaziou 11 years ago
parent
commit
216521ea2b
1 changed files with 1 additions and 2 deletions
  1. 1 2
      lisp/ox-ascii.el

+ 1 - 2
lisp/ox-ascii.el

@@ -1657,8 +1657,7 @@ contextual information."
 	      (buffer-substring (point-min) (point))))
 	      (buffer-substring (point-min) (point))))
 	   (t (org-remove-indentation (org-element-property :value table))))
 	   (t (org-remove-indentation (org-element-property :value table))))
      ;; Possible add a caption string below.
      ;; Possible add a caption string below.
-     (when (and caption (not org-ascii-caption-above))
-       (concat "\n" caption)))))
+     (and (not org-ascii-caption-above) caption))))
 
 
 
 
 ;;;; Table Cell
 ;;;; Table Cell