mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +00:00
Fix bug #11151
This commit is contained in:
parent
ff0db7452e
commit
17ea71b31c
@ -2267,16 +2267,16 @@ bool BufferParams::writeLaTeX(otexstream & os, LaTeXFeatures & features,
|
|||||||
if (!listings_params.empty()
|
if (!listings_params.empty()
|
||||||
|| features.mustProvide("listings")
|
|| features.mustProvide("listings")
|
||||||
|| features.mustProvide("minted")) {
|
|| features.mustProvide("minted")) {
|
||||||
if (features.mustProvide("listings"))
|
if (use_minted)
|
||||||
os << "\\usepackage{listings}\n";
|
|
||||||
else
|
|
||||||
os << "\\usepackage{minted}\n";
|
os << "\\usepackage{minted}\n";
|
||||||
|
else
|
||||||
|
os << "\\usepackage{listings}\n";
|
||||||
}
|
}
|
||||||
if (!listings_params.empty()) {
|
if (!listings_params.empty()) {
|
||||||
if (features.mustProvide("listings"))
|
if (use_minted)
|
||||||
os << "\\lstset{";
|
|
||||||
else
|
|
||||||
os << "\\setminted{";
|
os << "\\setminted{";
|
||||||
|
else
|
||||||
|
os << "\\lstset{";
|
||||||
// do not test validity because listings_params is
|
// do not test validity because listings_params is
|
||||||
// supposed to be valid
|
// supposed to be valid
|
||||||
string par =
|
string par =
|
||||||
|
Loading…
Reference in New Issue
Block a user