summary refs log tree commit
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2011-07-08 06:37:48 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2011-07-08 06:54:22 +0900
commit8abe6f4141127f019f6346f81baa778cbab15224 (patch)
tree3939df1ed5f5790ce7de0b1de56d5141fb0c7f8f
parent1a4046b2473faea201814b19fafd53154b32274e (diff)
downloadruby-json-8abe6f4141127f019f6346f81baa778cbab15224.tar.gz
remove trailing spaces.
* Rakefile (EXT_PARSER_SRC): remove trailing spaces.
-rw-r--r--Rakefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index 133119b..e48f6b1 100644
--- a/Rakefile
+++ b/Rakefile
@@ -363,6 +363,8 @@ else
       else
         sh "ragel -x parser.rl | #{RAGEL_CODEGEN} -G2"
       end
+      src = File.read("parser.c").gsub(/[ \t]+$/, '')
+      File.open("parser.c", "w") {|f| f.print src}
     end
   end