Skip to content
Browse files

remove empty lines on parsing

  • Loading branch information...
1 parent e958227 commit a7eacbad5f89abf40e049887e873d21a586f91cd Tim Felgentreff committed Jun 12, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/pk2000/loader.rb
View
2 lib/pk2000/loader.rb
@@ -2,10 +2,10 @@ class PlankalkuelLoader
def self.load(filename, options = nil, &block)
File.open(filename) do |file|
parser = Pk2000Parser.new
- #puts file.read
pkCode = file.read.
gsub(" ", "").gsub("\n]", "]").
gsub("[\n", "[").gsub(/^\n$/, "").
+ gsub("\n\n", "\n").
gsub("END\n", "END")
tree = parser.parse(pkCode)
rbCode = Ruby2Ruby.new.process(tree.toRuby)

0 comments on commit a7eacba

Please sign in to comment.
Something went wrong with that request. Please try again.