summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2011-07-08 06:37:48 +0900
committerFlorian Frank <flori@ping.de>2011-07-08 01:23:57 +0200
commit2a74207636bf0fd8a74b7ae58cf5631da3c28638 (patch)
tree3939df1ed5f5790ce7de0b1de56d5141fb0c7f8f /Rakefile
parent1a4046b2473faea201814b19fafd53154b32274e (diff)
downloadjson-2a74207636bf0fd8a74b7ae58cf5631da3c28638.tar.gz
remove trailing spaces.
* Rakefile (EXT_PARSER_SRC): remove trailing spaces.
Diffstat (limited to 'Rakefile')
-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