Remove writerUserDataDir from WriterOptions.
It is now carried in CommonState in PandocMonad instances. (And thus it can be used by readers too.)
This commit is contained in:
parent
737d09e325
commit
0283616a4a
3 changed files with 0 additions and 4 deletions
|
@ -355,7 +355,6 @@ convertWithOpts opts = do
|
|||
writerEmailObfuscation = optEmailObfuscation opts,
|
||||
writerIdentifierPrefix = optIdentifierPrefix opts,
|
||||
writerSourceURL = sourceURL,
|
||||
writerUserDataDir = datadir,
|
||||
writerHtmlQTags = optHtmlQTags opts,
|
||||
writerTopLevelDivision = optTopLevelDivision opts,
|
||||
writerListings = optListings opts,
|
||||
|
|
|
@ -202,7 +202,6 @@ data WriterOptions = WriterOptions
|
|||
, writerIdentifierPrefix :: String -- ^ Prefix for section & note ids in HTML
|
||||
-- and for footnote marks in markdown
|
||||
, writerSourceURL :: Maybe String -- ^ Absolute URL + directory of 1st source file
|
||||
, writerUserDataDir :: Maybe FilePath -- ^ Path of user data directory
|
||||
, writerCiteMethod :: CiteMethod -- ^ How to print cites
|
||||
, writerHtmlQTags :: Bool -- ^ Use @<q>@ tags for quotes in HTML
|
||||
, writerSlideLevel :: Maybe Int -- ^ Force header level of slides
|
||||
|
@ -240,7 +239,6 @@ instance Default WriterOptions where
|
|||
, writerEmailObfuscation = NoObfuscation
|
||||
, writerIdentifierPrefix = ""
|
||||
, writerSourceURL = Nothing
|
||||
, writerUserDataDir = Nothing
|
||||
, writerCiteMethod = Citeproc
|
||||
, writerHtmlQTags = False
|
||||
, writerSlideLevel = Nothing
|
||||
|
|
|
@ -226,7 +226,6 @@ writeDocx :: (PandocMonad m)
|
|||
-> Pandoc -- ^ Document to convert
|
||||
-> m BL.ByteString
|
||||
writeDocx opts doc@(Pandoc meta _) = do
|
||||
let datadir = writerUserDataDir opts
|
||||
let doc' = walk fixDisplayMath $ doc
|
||||
username <- P.lookupEnv "USERNAME"
|
||||
utctime <- P.getCurrentTime
|
||||
|
|
Loading…
Add table
Reference in a new issue