Reverted the behavior change with `--title-prefix`.
It now implies `--standalone` again, as before.
commit73fb9496bc2fed6d2b76e042623e78ac35347a06
authorJohn MacFarlane <jgm@berkeley.edu>
dateSun 17 Nov 2019, 17:35 (7 years ago)
parent147ef90
MANUAL.txt+1−2
@@ -1032,8 +1032,7 @@ header when requesting a document from a URL:
10321032
10331033: Specify *STRING* as a prefix at the beginning of the title
10341034 that appears in the HTML header (but not in the title as it
1035− appears at the beginning of the HTML body). This option
1036− should normally be used with `--standalone`.
1035+ appears at the beginning of the HTML body). Implies `--standalone`.
10371036
10381037`-c` *URL*, `--css=`*URL*
10391038
src/Text/Pandoc/App/CommandLineOptions.hs+2−1
@@ -584,7 +584,8 @@ options =
584584 (\arg opt ->
585585 return opt {
586586 optVariables =
587− setVariable "title-prefix" arg $ optVariables opt })
587+ setVariable "title-prefix" arg $ optVariables opt,
588+ optStandalone = True })
588589 "STRING")
589590 "" -- "String to prefix to HTML window title"
590591
src/Text/Pandoc/App/Opt.hs+2−1
@@ -332,7 +332,8 @@ doOpt (k',v) = do
332332 "file-scope" ->
333333 parseYAML v >>= \x -> return (\o -> o{ optFileScope = x })
334334 "title-prefix" ->
335− parseYAML v >>= \x -> return (\o -> o{ optTitlePrefix = x })
335+ parseYAML v >>= \x -> return (\o -> o{ optTitlePrefix = x,
336+ optStandalone = True })
336337 "css" ->
337338 (parseYAML v >>= \x -> return (\o -> o{ optCss = optCss o <>
338339 map unpack x }))