-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Java chokes on paths with spaces #38
Comments
I think that the latest master solves whitespace problems... Give it a try. If that's the case, then we need to do a new release. |
diff -Naur /Library/Ruby/Gems/1.8/gems/docsplit-0.6.0/lib/docsplit.rb docsplit-0.6.0-1/lib/docsplit.rb The Docsplit module delegates to the Java PDF extractors.+require 'tmpdir' VERSION = '0.6.0' # Keep in sync with gemspec. ROOT = File.expand_path(File.dirname(FILE) + '/..')
HEADLESS = "-Djava.awt.headless=true" @@ -19,8 +28,6 @@ DEPENDENCIES = {:java => false, :gm => false, :pdftotext => false, :pdftk => false, :tesseract => false} - ESCAPE = lambda {|x| Shellwords.shellescape(x) }Check for all dependencies, and note their absence.dirs = ENV['PATH'].split(File::PATH_SEPARATOR)
-require 'tmpdir' |
This fixes the path issue if docsplit itself is installed in a directory containing a space... Sorry, no git here, only diff. |
@ineiti could you please make a Pull Request? |
Le 23/10/12 10:43, Natim a écrit :
??? There is for a while now... Linus |
Thanks guys, we're working on a release. |
fixed in 491cddf |
When docsplit is installed in a directory which contains spaces, java jokes and dies.
The text was updated successfully, but these errors were encountered: