]> git.r.bdr.sh - rbdr/lyricli.rb/blobdiff - lib/lyricli/lyrics_engine.rb
Updates the readme.
[rbdr/lyricli.rb] / lib / lyricli / lyrics_engine.rb
index 72ee4022a917685d44912f659d7f446436ddbeb7..1291d41131f497e453cba41da5862745da923777 100644 (file)
@@ -31,11 +31,15 @@ module Lyricli
         n.remove
       end
 
+      node.search("script").each do |n|
+        n.remove
+      end
+
       node.search("br").each do |br|
         br.replace "\n"
       end
 
-      node.inner_text
+      node.inner_text.gsub(/\s+$/, "")
     end
   end
 end