Skip to content

Commit

Permalink
Merge pull request #252 from danyill/stdin-for-asciidoctor-pdf-js
Browse files Browse the repository at this point in the history
Prepare for compatibility with asciidoctor-pdf.js, related to #239
  • Loading branch information
João Pinto committed Jan 29, 2020
2 parents 4677d67 + 96274d4 commit 7c5e51e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/exportAsPDF.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ export class ExportAsPDF implements Command {
var adocpdf_cmd = adocpdf_cmd_array[0]

var adocpdf_cmd_args = adocpdf_cmd_array.slice(1)
adocpdf_cmd_args.push.apply(adocpdf_cmd_args, ['-q', '-',
adocpdf_cmd_args.push.apply(adocpdf_cmd_args, ['-q',
'-B', '"' + docPath.dir.replace('"', '\\"') + '"',
'-o', '"' + pdfPath.replace('"', '\\"') + '"'
'-o', '"' + pdfPath.replace('"', '\\"') + '"', '-'
])

var options = { shell: true, cwd: docPath.dir }
Expand Down

0 comments on commit 7c5e51e

Please sign in to comment.