about summary refs log tree commit homepage
path: root/Rakefile
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2014-12-02 01:56:31 +0000
committerEric Wong <e@80x24.org>2014-12-02 01:56:31 +0000
commita1dba8aa91a533870c44ec0b695391f16be9a71f (patch)
tree18805042fe572fe8ec178ad4a07cad3e2cbd99a4 /Rakefile
parent7a552121db4937f00d2b9a8586a475d02a8f833c (diff)
downloadyahns-a1dba8aa91a533870c44ec0b695391f16be9a71f.tar.gz
It's wrong to use gsub when stripping text in those cases.
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Rakefile b/Rakefile
index 899a446..d5ef529 100644
--- a/Rakefile
+++ b/Rakefile
@@ -116,11 +116,11 @@ task "NEWS" do
   time = nil
   tags.each do |tag|
     time ||= tag[:time_obj]
-    line = tag[:subject] + " / " + tag[:time].gsub(/T.*/, '')
+    line = tag[:subject] + " / " + tag[:time].sub(/T.*/, '')
     fp.puts line
     fp.puts("-" * line.length)
     fp.puts
-    fp.puts tag[:body] #.gsub(/^/m, "  ").gsub(/[ \t]+$/m, "")
+    fp.puts tag[:body]
     fp.puts
   end
   fp.write("Unreleased\n\n") unless fp.size > 0