diff options
| author | John MacFarlane <[email protected]> | 2011-11-10 15:37:52 -0800 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2011-11-10 15:37:52 -0800 |
| commit | 14620579c0467157a641613275a11379b34c9534 (patch) | |
| tree | 07d3c96f399ac4bbd21e3393758b3ebf15bf00cb | |
| parent | fc3826e078302e8351fa68d05d84dada1668cd3a (diff) | |
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.
| -rw-r--r-- | README | 3 | ||||
| -rw-r--r-- | src/markdown2pdf.hs | 2 |
2 files changed, 2 insertions, 3 deletions
@@ -102,8 +102,7 @@ for example, markdown2pdf sample.txt endnotes.txt -will produce `sample.pdf`. (If `sample.pdf` exists already, -it will be backed up before being overwritten.) An output file +will produce `sample.pdf`. An output file name can be specified explicitly using the `-o` option: markdown2pdf -o book.pdf chap1 chap2 diff --git a/src/markdown2pdf.hs b/src/markdown2pdf.hs index 1a2ee8ccb..811d5febd 100644 --- a/src/markdown2pdf.hs +++ b/src/markdown2pdf.hs @@ -257,7 +257,7 @@ main = withTempDir "pandoc" case latexRes of Left err -> exit err Right pdfFile -> do - -- save the output creating a backup if necessary + -- save the output saveOutput pdfFile $ replaceDirectory pdfFile (takeDirectory output) |
