diff options
| author | John MacFarlane <[email protected]> | 2025-08-21 23:24:03 +0200 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2025-08-21 23:24:52 +0200 |
| commit | 93f8145fa43facb743b444dac08352f7902dc0aa (patch) | |
| tree | 3a8d1078a81dc12eef2b33c95a0913183c489666 | |
| parent | 072efe81f8dc45f4dfa70f148360c8ed642814b3 (diff) | |
Make `-t chunkedhtml -o -` output to stdout (as documented)...
rather than creating a directory called `-`.
Closes #11068.
| -rw-r--r-- | src/Text/Pandoc/App.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/App.hs b/src/Text/Pandoc/App.hs index 8035475f9..67cbd6158 100644 --- a/src/Text/Pandoc/App.hs +++ b/src/Text/Pandoc/App.hs @@ -123,7 +123,8 @@ convertWithOpts scriptingEngine opts = do TextOutput t -> writerFn eol outputFile t BinaryOutput bs -> writeFnBinary outputFile bs ZipOutput bs - | null (takeExtension outputFile) -> do + | null (takeExtension outputFile) + , outputFile /= "-" -> do -- create directory and unzip createDirectory outputFile -- will fail if directory exists let zipopts = [OptRecursive, OptDestination outputFile] ++ |
