History

[django] Clean up the multi-platform console blocks

Jed Fox committed 6 years ago

Commit cb790e91 parent 4ea57bd1 file · +8 −0Browse files

Unified · Split

lib/docs/filters/django/clean_html.rb+8−0
@@ -4,6 +4,14 @@ module Docs · 3 unmodified lines
4 def call4 def call
5 @doc = at_css('.yui-g')5 @doc = at_css('.yui-g')
6 6
7 css('.console-block').each do |node|
8 node.css('input', 'label').remove
9 node.css('section').each do |sec|
10 sec.before(sec.children).remove
11 end
12 node.before(node.children).remove
13 end
14
7 doc15 doc
8 end16 end
9 end17 end