]> git.lyx.org Git - features.git/commitdiff
Allow $$s converter substitution if 'latex' flag
authorScott Kostyshak <skostysh@lyx.org>
Sat, 25 Jan 2014 18:16:05 +0000 (13:16 -0500)
committerScott Kostyshak <skostysh@lyx.org>
Fri, 21 Feb 2014 17:51:48 +0000 (12:51 -0500)
A more general patch will be committed for 2.2 that
centralizes replacement of $$s in startScript().

src/Converter.cpp

index a27d742a713c70bd0c6f9eb021b60d19cd5880a3..a3df839054bd77c1ed9319c904234976b64a2a99 100644 (file)
@@ -403,6 +403,7 @@ bool Converters::convert(Buffer const * buffer,
                        command = subst(command, token_from, "");
                        command = subst(command, token_latex_encoding, buffer ?
                                buffer->params().encoding().latexName() : string());
+                       command = libScriptSearch(command);
                        LYXERR(Debug::FILES, "Running " << command);
                        if (!runLaTeX(*buffer, command, runparams, errorList))
                                return false;