Browse Source

ox-latex.el: Fix minted inline

* lisp/ox-latex.el (org-latex-inline-src-block): Output minted code that
  correctly formats code inline.
Alan Schmitt 9 years ago
parent
commit
06a1fea109
1 changed files with 3 additions and 3 deletions
  1. 3 3
      lisp/ox-latex.el

+ 3 - 3
lisp/ox-latex.el

@@ -2012,10 +2012,10 @@ contextual information."
 			     (downcase org-lang)))
 	      (options (org-latex--make-option-string
 			(plist-get info :latex-minted-options))))
-	 (concat (format "\\mint%s{%s}"
+	 (format "\\mintinline%s{%s}{%s}"
 			 (if (string= options "") "" (format "[%s]" options))
-			 mint-lang)
-		 separator code separator)))
+			 mint-lang
+			 code)))
       ;; Use listings package.
       (otherwise
        ;; Maybe translate language's name.