summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-01-30 20:11:08 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-01-30 20:11:08 +0000
commit7409963c9a69d0f2df0fc8f345e9069d1dbd0b41 (patch)
treef6463478f407844ddcb6387b0f4479c5853b3264 /lib
parent2664693ae83b841aa8d0e7b2bf14da751dc1ce28 (diff)
downloadredmine-7409963c9a69d0f2df0fc8f345e9069d1dbd0b41.tar.gz
redmine-7409963c9a69d0f2df0fc8f345e9069d1dbd0b41.zip
Fix for ruby1.9.3.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8736 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/export/pdf.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/export/pdf.rb b/lib/redmine/export/pdf.rb
index 75bf8e863..f6d6f8cb1 100644
--- a/lib/redmine/export/pdf.rb
+++ b/lib/redmine/export/pdf.rb
@@ -98,7 +98,7 @@ module Redmine
def textstring(s)
# 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
else
return '('+escape(s)+')'