aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2009-12-31 01:09:36 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2009-12-31 01:09:36 +0000
commit0d8fc82a8c0e9ed9f439452ddd439d768812e3b5 (patch)
tree60911143025bd4f28327f4f893a634b96b446937
parent732e6a109721f0b456962e8eaff674996f72dd22 (diff)
downloadpandoc-0d8fc82a8c0e9ed9f439452ddd439d768812e3b5.tar.gz
Changed --print-default-header to --print-default-template.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1679 788f1e2b-df1e-0410-8736-df70ead52e1b
-rw-r--r--README4
-rw-r--r--man/man1/pandoc.1.md7
-rw-r--r--src/pandoc.hs8
3 files changed, 11 insertions, 8 deletions
diff --git a/README b/README
index d197f74fc..2cb4618e4 100644
--- a/README
+++ b/README
@@ -310,6 +310,10 @@ For further documentation, see the `pandoc(1)` man page.
repeatedly to include multiple files. They will be included in the
order specified.
+`-D` or `--print-default-template` *format*
+: prints the default template for an output *format*. (See `-t`
+ for a list of possible *format*s.)
+
`-T` or `--title-prefix` *string*
: includes *string* as a prefix at the beginning of the title that
appears in the HTML header (but not in the title as it appears at
diff --git a/man/man1/pandoc.1.md b/man/man1/pandoc.1.md
index 3caf104f4..69a678198 100644
--- a/man/man1/pandoc.1.md
+++ b/man/man1/pandoc.1.md
@@ -186,10 +186,9 @@ to Pandoc. Or use `html2markdown`(1), a wrapper around `pandoc`.
default header, which can be printed by using the `-D` option).
Implies `-s`.
--D *FORMAT*, \--print-default-header=*FORMAT*
-: Print the default header for *FORMAT* (`html`, `s5`, `latex`,
- `context`, `docbook`, `man`, `markdown`, `opendocument`,
- `rst`, `rtf`).
+-D *FORMAT*, \--print-default-template=*FORMAT*
+: Print the default template for an output *FORMAT*. (See `-t`
+ for a list of possible *FORMAT*s.)
-T *STRING*, \--title-prefix=*STRING*
: Specify *STRING* as a prefix to the HTML window title.
diff --git a/src/pandoc.hs b/src/pandoc.hs
index 8f4c9e41f..a4a9d2900 100644
--- a/src/pandoc.hs
+++ b/src/pandoc.hs
@@ -387,16 +387,16 @@ options =
"STRING")
"" -- "String to prefix to HTML window title"
- , Option "D" ["print-default-header"]
+ , Option "D" ["print-default-template"]
(ReqArg
(\arg _ -> do
- let header = case (lookup arg writers) of
+ let template = case (lookup arg writers) of
Just (_, h) -> h
Nothing -> error ("Unknown reader: " ++ arg)
- hPutStr stdout header
+ hPutStr stdout template
exitWith ExitSuccess)
"FORMAT")
- "" -- "Print default header for FORMAT"
+ "" -- "Print default template for FORMAT"
#ifdef _CITEPROC
, Option "" ["biblio"]
(ReqArg