Skip to content

Commit

Permalink
Remove unnecessary comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabe Berke-Williams committed Apr 8, 2012
1 parent 5b7b931 commit b3827de
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions lib/pidgin2adium/parsers/html_log_parser.rb
Expand Up @@ -64,11 +64,6 @@ def cleanup(text)
# For spans, removes a space after the final declaration if it exists. # For spans, removes a space after the final declaration if it exists.
text.gsub!(/<span style='([^']+?;) ?'>/, '<span style="\1">') text.gsub!(/<span style='([^']+?;) ?'>/, '<span style="\1">')
text.gsub!(/([a-z]+=)'(.+?)'/, '\1"\2"') 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;') text.gsub!("'", '&apos;')


# This actually does match stuff, but doesn't group it correctly. :( # This actually does match stuff, but doesn't group it correctly. :(
Expand All @@ -80,8 +75,6 @@ def cleanup(text)
# style = style declaration # style = style declaration
# innertext = text inside <span> # innertext = text inside <span>
style, innertext = $1, $2 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 = style.split(/; ?/)
styleparts.map! do |p| styleparts.map! do |p|
Expand Down Expand Up @@ -117,5 +110,5 @@ def cleanup(text)
end end
text text
end end
end # END HtmlLogParser class end
end end

0 comments on commit b3827de

Please sign in to comment.