asciidoctor/asciidoctor-pdf

Optimizer fails to run on Windows

Closed this issue · 2 comments

The optimizer does not work on Windows because rghost is mangling the arguments to the gs command.

The GSAlone#run method in rghost needs to be patched to allow Ruby to prepare the commandline arguments instead of trying to escape them manually. There's no need to do it the way that rghost is doing it, and it is causing the command to fail (for various reasons).

This is closely related to #1791.