aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2011-11-10 15:37:52 -0800
committerJohn MacFarlane <[email protected]>2011-11-10 15:37:52 -0800
commit14620579c0467157a641613275a11379b34c9534 (patch)
tree07d3c96f399ac4bbd21e3393758b3ebf15bf00cb
parentfc3826e078302e8351fa68d05d84dada1668cd3a (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--README3
-rw-r--r--src/markdown2pdf.hs2
2 files changed, 2 insertions, 3 deletions
diff --git a/README b/README
index d36068dfa..792e22d2e 100644
--- a/README
+++ b/README
@@ -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)