瀏覽代碼

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 年之前
父節點
當前提交
216521ea2b
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      lisp/ox-ascii.el

+ 1 - 2
lisp/ox-ascii.el

@@ -1657,8 +1657,7 @@ contextual information."
 	      (buffer-substring (point-min) (point))))
 	   (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)))))
+     (and (not org-ascii-caption-above) caption))))
 
 
 ;;;; Table Cell