Changed misleading documentation on markdown2pdf.
markdown2pdf used to create a backup file if the output file exists; it doesn't any longer, but the documentation still said it does.
This commit is contained in:
parent
fc3826e078
commit
14620579c0
2 changed files with 2 additions and 3 deletions
3
README
3
README
|
@ -102,8 +102,7 @@ for example,
|
||||||
|
|
||||||
markdown2pdf sample.txt endnotes.txt
|
markdown2pdf sample.txt endnotes.txt
|
||||||
|
|
||||||
will produce `sample.pdf`. (If `sample.pdf` exists already,
|
will produce `sample.pdf`. An output file
|
||||||
it will be backed up before being overwritten.) An output file
|
|
||||||
name can be specified explicitly using the `-o` option:
|
name can be specified explicitly using the `-o` option:
|
||||||
|
|
||||||
markdown2pdf -o book.pdf chap1 chap2
|
markdown2pdf -o book.pdf chap1 chap2
|
||||||
|
|
|
@ -257,7 +257,7 @@ main = withTempDir "pandoc"
|
||||||
case latexRes of
|
case latexRes of
|
||||||
Left err -> exit err
|
Left err -> exit err
|
||||||
Right pdfFile -> do
|
Right pdfFile -> do
|
||||||
-- save the output creating a backup if necessary
|
-- save the output
|
||||||
saveOutput pdfFile $
|
saveOutput pdfFile $
|
||||||
replaceDirectory pdfFile (takeDirectory output)
|
replaceDirectory pdfFile (takeDirectory output)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue