Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Remove unnecessary comments.

  • Loading branch information...
commit b3827de4928a9e47992d49954a9f9e7cd12d6b25 1 parent 5b7b931
Gabe Berke-Williams authored April 08, 2012
9  lib/pidgin2adium/parsers/html_log_parser.rb
@@ -64,11 +64,6 @@ def cleanup(text)
64 64
       # For spans, removes a space after the final declaration if it exists.
65 65
       text.gsub!(/<span style='([^']+?;) ?'>/, '<span style="\1">')
66 66
       text.gsub!(/([a-z]+=)'(.+?)'/, '\1"\2"')
67  
-=begin
68  
-      text.gsub!(/<a href='(.+?)'>/, '<a href="\1">')
69  
-      text.gsub!(/<img src='([^']+?)'/, '<img src="\1"')
70  
-      text.gsub!(/ alt='([^']+?)'/, ' alt="\1"')
71  
-=end
72 67
       text.gsub!("'", '&apos;')
73 68
 
74 69
       # This actually does match stuff, but doesn't group it correctly. :(
@@ -80,8 +75,6 @@ def cleanup(text)
80 75
         # style = style declaration
81 76
         # innertext = text inside <span>
82 77
         style, innertext = $1, $2
83  
-        # TODO: replace double quotes with "&quot;", but only outside tags; may still be tags inside spans
84  
-        # innertext.gsub!("")
85 78
 
86 79
         styleparts = style.split(/; ?/)
87 80
         styleparts.map! do |p|
@@ -117,5 +110,5 @@ def cleanup(text)
117 110
       end
118 111
       text
119 112
     end
120  
-  end # END HtmlLogParser class
  113
+  end
121 114
 end

0 notes on commit b3827de

Please sign in to comment.
Something went wrong with that request. Please try again.