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
|
||||
, optCitationAbbreviations = oCitationAbbreviations
|
||||
, optPdfEngine = oPdfEngine
|
||||
, optHighlightStyle = oHighlightStyle
|
||||
}
|
||||
= do
|
||||
oTemplate' <- mapM resolveVars oTemplate
|
||||
|
@ -240,6 +241,7 @@ resolveVarsInOpt
|
|||
oBibliography' <- mapM resolveVars oBibliography
|
||||
oCitationAbbreviations' <- mapM resolveVars oCitationAbbreviations
|
||||
oPdfEngine' <- mapM resolveVars oPdfEngine
|
||||
oHighlightStyle' <- mapM (fmap T.pack . resolveVars . T.unpack) oHighlightStyle
|
||||
return opt{ optTemplate = oTemplate'
|
||||
, optMetadataFiles = oMetadataFiles'
|
||||
, optOutputFile = oOutputFile'
|
||||
|
@ -263,6 +265,7 @@ resolveVarsInOpt
|
|||
, optBibliography = oBibliography'
|
||||
, optCitationAbbreviations = oCitationAbbreviations'
|
||||
, optPdfEngine = oPdfEngine'
|
||||
, optHighlightStyle = oHighlightStyle'
|
||||
}
|
||||
|
||||
where
|
||||
|
|
Loading…
Reference in a new issue