sync_mediawiki/sync_mediawiki.rb in gs2crmod-0.11.1 vs sync_mediawiki/sync_mediawiki.rb in gs2crmod-0.11.2
- old
+ new
@@ -1,7 +1,7 @@
require 'helper'
CodeRunner.setup_run_class('gs2')
-raise "curl failed" unless system %[curl 'http://sourceforge.net/apps/mediawiki/gyrokinetics/index.php?title=GS2_Input_Parameters&action=edit' | sed 's/&/\&/g' | sed 's/"/"/g' | sed 's/>/>/g' | sed 's/</</g' | sed 's/ / /g' > gs2_mediawiki.txt]
+raise "curl failed" unless system %[curl 'http://sourceforge.net/apps/mediawiki/gyrokinetics/index.php?title=GS2_Input_Parameters&action=edit' | sed 's/&/\\&/g' | sed 's/"/"/g' | sed 's/>/>/g' | sed 's/</</g' | sed 's/ / /g' > gs2_mediawiki.txt]
CodeRunner::Gs2.read_mediawiki_documentation('gs2_mediawiki.txt')
CodeRunner::Gs2.write_mediawiki_documentation('gs2_mediawiki2.txt')
system 'kwrite gs2_mediawiki2.txt' or system '/Applications/TextEdit.app/Contents/MacOS/TextEdit gs2_mediawiki2.txt'