A new user interface for you! Read more...

File einars-js-beautify-3c45cd9-fix-relative-symlinks.diff of Package jsbeautify

diff -uNr einars-js-beautify-3c45cd9.ori/bin/beautify_js einars-js-beautify-3c45cd9/bin/beautify_js
--- einars-js-beautify-3c45cd9.ori/bin/beautify_js	2010-07-07 00:15:59.000000000 +0200
+++ einars-js-beautify-3c45cd9/bin/beautify_js	2010-07-21 11:57:04.000000000 +0200
@@ -68,7 +68,7 @@
 
 
 # Change directory so that the load() calls in beautify-cl.js are able to find the files they need
-Dir.chdir File.dirname(File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__)
+Dir.chdir File.dirname(File.symlink?(__FILE__) ? File.dirname(__FILE__) + "/" + File.readlink(__FILE__) : __FILE__)
 Dir.chdir '..'
 #puts Dir.getwd