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.
This commit is contained in:
Nicolas Goaziou 2013-02-10 20:50:38 +01:00
parent a3f6570fff
commit 1eccd207af
1 changed files with 2 additions and 2 deletions

View File

@ -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