Fix for ruby1.9.3.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8736 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-01-30 20:11:08 +00:00
parent 2664693ae8
commit 7409963c9a

View File

@ -98,7 +98,7 @@ module Redmine
def textstring(s) def textstring(s)
# Format a text string # Format a text string
if s =~ /^</ # This means the string is hex-dumped. if s.chars.first == '<' # This means the string is hex-dumped.
return s return s
else else
return '('+escape(s)+')' return '('+escape(s)+')'