ox-latex.el (org-latex--text-markup): Replace newlines by whitespaces in \verb constructs

* ox-latex.el (org-latex--text-markup): Replace newlines by
whitespaces in \verb constructs.

Thanks to Alan Schmitt for reporting this.
This commit is contained in:
Bastien Guerry 2014-03-21 09:56:18 +01:00
parent a97959984a
commit f8cb7803cc
1 changed files with 3 additions and 1 deletions

View File

@ -998,7 +998,9 @@ See `org-latex-text-markup-alist' for details."
;; and use "\\verb" command.
((eq 'verb fmt)
(let ((separator (org-latex--find-verb-separator text)))
(concat "\\verb" separator text separator)))
(concat "\\verb" separator
(replace-regexp-in-string "\n" " " text)
separator)))
;; Handle the `protectedtexttt' special case: Protect some
;; special chars and use "\texttt{%s}" format string.
((eq 'protectedtexttt fmt)