mileszs/wicked_pdf — pull request #79 by karhatsu (2012-01-22 09:15:30+00:00)
Title: options with spaces in their values work now for Windows as well

If you had e.g. :header => { :left => 'My header' }, in Windows pdf could not be generated due to the space in the value. It seems that Windows considers the first single quote being part of the value, which means that the space makes the command invalid.

The single quotes caused also another problem. If you had :header => { :left => 'My-header' }, the command worked but in the pdf you saw 'My-header' with the quotes (not plain My-header).

This patch fixes the both problems. First of all, when there are spaces in the values, the pdf can be generated. Secondly, the output does not contain single quotes, just the text that was wanted.

The fix should have no effect on wicked_pdf behavior in Linux.