From 4feeecfdeff7defa19bbe300842e14118e869c02 Mon Sep 17 00:00:00 2001 From: Frederic Hemberger Date: Fri, 4 Nov 2011 08:40:41 +0100 Subject: Date format: Remove unnecessary escapement --- plugins/date.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/plugins/date.rb b/plugins/date.rb index 8758f23f..b864f3e9 100644 --- a/plugins/date.rb +++ b/plugins/date.rb @@ -36,7 +36,6 @@ module Octopress if format.nil? || format.empty? || format == "ordinal" date_formatted = ordinalize(date) else - format.gsub!(/%o/, '%%o') date_formatted = date.strftime(format) date_formatted.gsub!(/%o/, ordinal(date.strftime('%e').to_i)) end -- cgit v1.2.1