Permalink
Browse files

Remove unnecessary comments.

  • Loading branch information...
Gabe Berke-Williams
Gabe Berke-Williams committed Apr 8, 2012
1 parent 5b7b931 commit b3827de4928a9e47992d49954a9f9e7cd12d6b25
Showing with 1 addition and 8 deletions.
  1. +1 −8 lib/pidgin2adium/parsers/html_log_parser.rb
@@ -64,11 +64,6 @@ def cleanup(text)
# For spans, removes a space after the final declaration if it exists.
text.gsub!(/<span style='([^']+?;) ?'>/, '<span style="\1">')
text.gsub!(/([a-z]+=)'(.+?)'/, '\1"\2"')
-=begin
- text.gsub!(/<a href='(.+?)'>/, '<a href="\1">')
- text.gsub!(/<img src='([^']+?)'/, '<img src="\1"')
- text.gsub!(/ alt='([^']+?)'/, ' alt="\1"')
-=end
text.gsub!("'", '&apos;')
# This actually does match stuff, but doesn't group it correctly. :(
@@ -80,8 +75,6 @@ def cleanup(text)
# style = style declaration
# innertext = text inside <span>
style, innertext = $1, $2
- # TODO: replace double quotes with "&quot;", but only outside tags; may still be tags inside spans
- # innertext.gsub!("")
styleparts = style.split(/; ?/)
styleparts.map! do |p|
@@ -117,5 +110,5 @@ def cleanup(text)
end
text
end
- end # END HtmlLogParser class
+ end
end

0 comments on commit b3827de

Please sign in to comment.