jaketmp / ePub-quicklook

NOTE: Not working in Mojave and later! ePub quicklook and spotlight plugins for Mac OS X.
BSD 3-Clause "New" or "Revised" License
570 stars 58 forks source link

Correctly handle hrefs containing spaces (issue 31) #32

Closed chrisridd closed 12 years ago

chrisridd commented 12 years ago

Two methods read "filenames" out of the OPF. These aren't filenames, they're URIs and so need to be unescaped in order to be usable as filenames in the zip.

NSString has a handy -stringByReplacingPercentEscapesUsingEncoding: method which is used here.

The tests still all succeed. My book with a space in the cover image filename now displays a cover image.

jaketmp commented 12 years ago

Excellent - I'll package up all the recent fixes when I get a chance.