diff options
author | Eric Wong <e@80x24.org> | 2014-12-02 01:56:31 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-12-02 01:56:31 +0000 |
commit | a1dba8aa91a533870c44ec0b695391f16be9a71f (patch) | |
tree | 18805042fe572fe8ec178ad4a07cad3e2cbd99a4 /Rakefile | |
parent | 7a552121db4937f00d2b9a8586a475d02a8f833c (diff) | |
download | yahns-a1dba8aa91a533870c44ec0b695391f16be9a71f.tar.gz |
It's wrong to use gsub when stripping text in those cases.
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |