Skip to content

Commit

Permalink
PDF: use .source extension, not .html, in toPdfViaTempFile.
Browse files Browse the repository at this point in the history
See #10314.
  • Loading branch information
jgm committed Oct 22, 2024
1 parent 3833a9d commit 7330ad5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Text/Pandoc/PDF.hs
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ toPdfViaTempFile ::
-> Text -- ^ Source
-> IO (Either ByteString ByteString)
toPdfViaTempFile verbosity program args mkOutArgs source =
withTempFile "." "toPdfViaTempFile.html" $ \file h1 ->
withTempFile "." "toPdfViaTempFile.source" $ \file h1 ->
withTempFile "." "toPdfViaTempFile.pdf" $ \pdfFile h2 -> do
hClose h1
hClose h2
Expand Down

0 comments on commit 7330ad5

Please sign in to comment.