git.iko.soy/typeable/pandoc
on master help sign in
Changed --print-default-header to --print-default-template.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1679 788f1e2b-df1e-0410-8736-df70ead52e1b

commit0d8fc82a8c0e9ed9f439452ddd439d768812e3b5 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateThu 31 Dec 2009, 01:09 (17 years ago) parent732e6a1
3 files changed+11−8
README+4 man/man1/pandoc.1.md+3−4 src/pandoc.hs+4−4
README+4
@@ -310,6 +310,10 @@ For further documentation, see the `pandoc(1)` man page.
310310 repeatedly to include multiple files. They will be included in the
311311 order specified.
312312
313+`-D` or `--print-default-template` *format*
314+: prints the default template for an output *format*. (See `-t`
315+ for a list of possible *format*s.)
316+
313317`-T` or `--title-prefix` *string*
314318: includes *string* as a prefix at the beginning of the title that
315319 appears in the HTML header (but not in the title as it appears at
man/man1/pandoc.1.md+3−4
@@ -186,10 +186,9 @@ to Pandoc. Or use `html2markdown`(1), a wrapper around `pandoc`.
186186 default header, which can be printed by using the `-D` option).
187187 Implies `-s`.
188188
189−-D *FORMAT*, \--print-default-header=*FORMAT*
190−: Print the default header for *FORMAT* (`html`, `s5`, `latex`,
191− `context`, `docbook`, `man`, `markdown`, `opendocument`,
192− `rst`, `rtf`).
189+-D *FORMAT*, \--print-default-template=*FORMAT*
190+: Print the default template for an output *FORMAT*. (See `-t`
191+ for a list of possible *FORMAT*s.)
193192
194193-T *STRING*, \--title-prefix=*STRING*
195194: Specify *STRING* as a prefix to the HTML window title.
src/pandoc.hs+4−4
@@ -387,16 +387,16 @@ options =
387387 "STRING")
388388 "" -- "String to prefix to HTML window title"
389389
390− , Option "D" ["print-default-header"]
390+ , Option "D" ["print-default-template"]
391391 (ReqArg
392392 (\arg _ -> do
393− let header = case (lookup arg writers) of
393+ let template = case (lookup arg writers) of
394394 Just (_, h) -> h
395395 Nothing -> error ("Unknown reader: " ++ arg)
396− hPutStr stdout header
396+ hPutStr stdout template
397397 exitWith ExitSuccess)
398398 "FORMAT")
399− "" -- "Print default header for FORMAT"
399+ "" -- "Print default template for FORMAT"
400400#ifdef _CITEPROC
401401 , Option "" ["biblio"]
402402 (ReqArg