Explorar o código

go: move `id`s to kept elements

Simon Legner %!s(int64=6) %!d(string=hai) anos
pai
achega
40477ece85
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      lib/docs/filters/go/clean_html.rb

+ 1 - 0
lib/docs/filters/go/clean_html.rb

@@ -17,6 +17,7 @@ module Docs
         css('#plusone', '#nav', '.pkgGopher', '#footer', '.collapsed', '.permalink', '#pkg-callgraph').remove
 
         css('span[style]', '.toggleVisible', '.expanded', 'div.toggle').each do |node|
+          node.first_element_child['id'] = node['id'] if node['id']
           node.before(node.children).remove
         end