Allow environment variable interpolation in highlight-style in defaults files (#8073)
This commit is contained in:
parent
b888a8c77e
commit
9c85933b38
1 changed files with 3 additions and 0 deletions
|
@ -215,6 +215,7 @@ resolveVarsInOpt
|
||||||
, optBibliography = oBibliography
|
, optBibliography = oBibliography
|
||||||
, optCitationAbbreviations = oCitationAbbreviations
|
, optCitationAbbreviations = oCitationAbbreviations
|
||||||
, optPdfEngine = oPdfEngine
|
, optPdfEngine = oPdfEngine
|
||||||
|
, optHighlightStyle = oHighlightStyle
|
||||||
}
|
}
|
||||||
= do
|
= do
|
||||||
oTemplate' <- mapM resolveVars oTemplate
|
oTemplate' <- mapM resolveVars oTemplate
|
||||||
|
@ -240,6 +241,7 @@ resolveVarsInOpt
|
||||||
oBibliography' <- mapM resolveVars oBibliography
|
oBibliography' <- mapM resolveVars oBibliography
|
||||||
oCitationAbbreviations' <- mapM resolveVars oCitationAbbreviations
|
oCitationAbbreviations' <- mapM resolveVars oCitationAbbreviations
|
||||||
oPdfEngine' <- mapM resolveVars oPdfEngine
|
oPdfEngine' <- mapM resolveVars oPdfEngine
|
||||||
|
oHighlightStyle' <- mapM (fmap T.pack . resolveVars . T.unpack) oHighlightStyle
|
||||||
return opt{ optTemplate = oTemplate'
|
return opt{ optTemplate = oTemplate'
|
||||||
, optMetadataFiles = oMetadataFiles'
|
, optMetadataFiles = oMetadataFiles'
|
||||||
, optOutputFile = oOutputFile'
|
, optOutputFile = oOutputFile'
|
||||||
|
@ -263,6 +265,7 @@ resolveVarsInOpt
|
||||||
, optBibliography = oBibliography'
|
, optBibliography = oBibliography'
|
||||||
, optCitationAbbreviations = oCitationAbbreviations'
|
, optCitationAbbreviations = oCitationAbbreviations'
|
||||||
, optPdfEngine = oPdfEngine'
|
, optPdfEngine = oPdfEngine'
|
||||||
|
, optHighlightStyle = oHighlightStyle'
|
||||||
}
|
}
|
||||||
|
|
||||||
where
|
where
|
||||||
|
|
Loading…
Add table
Reference in a new issue