History

Use String#remove

Thibaut committed 12 years ago

Commit bcd4a5b1 parent a0b795934 files · +79 −79Browse files

Showing the changes to lib/docs/filters/python/clean_html.rb (1 of 34 files). Show all

Unified · Split

lib/docs/filters/python/clean_html.rb+1−1
@@ -38,7 +38,7 @@ module Docs · 37 unmodified lines
3838 node.css('a').each do |link|
3939 link.before(link.children).remove
4040 end
41− node.child.content = node.child.content.sub @levelRegexp, ''
41+ node.child.content = node.child.content.remove @levelRegexp
4242 end
4343
4444 css('dt').each do |node|