diff options
author | John MacFarlane <jgm@berkeley.edu> | 2019-11-17 17:35:50 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-11-17 17:35:50 -0800 |
commit | 73fb9496bc2fed6d2b76e042623e78ac35347a06 (patch) | |
tree | 6148c3fcbc8d340899f336cb4b559c213ba3fad8 /src/Text | |
parent | 147ef90fdea29d68693184f07f2a679506a13702 (diff) | |
download | pandoc-73fb9496bc2fed6d2b76e042623e78ac35347a06.tar.gz |
Reverted the behavior change with `--title-prefix`.
It now implies `--standalone` again, as before.
Diffstat (limited to 'src/Text')
-rw-r--r-- | src/Text/Pandoc/App/CommandLineOptions.hs | 3 | ||||
-rw-r--r-- | src/Text/Pandoc/App/Opt.hs | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/Text/Pandoc/App/CommandLineOptions.hs b/src/Text/Pandoc/App/CommandLineOptions.hs index bf1619e30..7d3b935ef 100644 --- a/src/Text/Pandoc/App/CommandLineOptions.hs +++ b/src/Text/Pandoc/App/CommandLineOptions.hs @@ -584,7 +584,8 @@ options = (\arg opt -> return opt { optVariables = - setVariable "title-prefix" arg $ optVariables opt }) + setVariable "title-prefix" arg $ optVariables opt, + optStandalone = True }) "STRING") "" -- "String to prefix to HTML window title" diff --git a/src/Text/Pandoc/App/Opt.hs b/src/Text/Pandoc/App/Opt.hs index 09f018233..4f54bad48 100644 --- a/src/Text/Pandoc/App/Opt.hs +++ b/src/Text/Pandoc/App/Opt.hs @@ -332,7 +332,8 @@ doOpt (k',v) = do "file-scope" -> parseYAML v >>= \x -> return (\o -> o{ optFileScope = x }) "title-prefix" -> - parseYAML v >>= \x -> return (\o -> o{ optTitlePrefix = x }) + parseYAML v >>= \x -> return (\o -> o{ optTitlePrefix = x, + optStandalone = True }) "css" -> (parseYAML v >>= \x -> return (\o -> o{ optCss = optCss o <> map unpack x })) |