From 0d87789eec37f7ae09d01937dbfc72af1ef17252 Mon Sep 17 00:00:00 2001 From: mguetlein Date: Tue, 24 May 2011 16:06:05 +0200 Subject: fix small errors in to-html method --- lib/to-html.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/to-html.rb') diff --git a/lib/to-html.rb b/lib/to-html.rb index 66a3e74..51602d7 100644 --- a/lib/to-html.rb +++ b/lib/to-html.rb @@ -6,7 +6,7 @@ class String # encloses URI in text with with link tag # @return [String] new text with marked links def link_urls - self.gsub(/(?i)http(s?):\/\/[^\r\n\s']*/, '\0') + self.gsub(/(?i)http(s?):\/\/[^\r\n\s']*/, '\0') end end @@ -30,7 +30,7 @@ module OpenTox title = nil #$sinatra.url_for($sinatra.request.env['PATH_INFO'], :full) if $sinatra html = "" html += ""+title+"" if title - html += "" + html += "<\/img>" if AA_SERVER user = OpenTox::Authorization.get_user(subjectid) if subjectid @@ -63,7 +63,7 @@ module OpenTox html += "

Content

" if description || related_links html += "

" html += text.link_urls - html += "

" + html += "

" html end @@ -78,7 +78,7 @@ module OpenTox "password:"+ #""+ "" - html += "

" + html += "

" html end end -- cgit v1.2.3