浏览代码

ox-texinfo: Remove spurious blank line in src block export

* lisp/ox-texinfo.el (org-texinfo-src-block): Remove spurious newline
  character as `org-export-format-code-default' already makes sure the
  string returned will end with a single one.

Thanks to Frank Fischer for reporting it.
Nicolas Goaziou 12 年之前
父节点
当前提交
1eccd207af
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lisp/ox-texinfo.el

+ 2 - 2
lisp/ox-texinfo.el

@@ -1405,11 +1405,11 @@ contextual information."
     (cond
      ;; Case 1.  Lisp Block
      (lisp-p
-      (format "@lisp\n%s\n@end lisp"
+      (format "@lisp\n%s@end lisp"
 	      (org-export-format-code-default src-block info)))
      ;; Case 2.  Other blocks
      (t
-      (format "@example\n%s\n@end example"
+      (format "@example\n%s@end example"
 	      (org-export-format-code-default src-block info))))))
 
 ;;; Statistics Cookie