Explorar o código

Fix missing headings in Python 2.7 docs

Thibaut Courouble %!s(int64=7) %!d(string=hai) anos
pai
achega
0bf7155fba
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/docs/filters/python/clean_html.rb

+ 1 - 1
lib/docs/filters/python/clean_html.rb

@@ -15,7 +15,7 @@ module Docs
 
       def other
         css('h1').each do |node|
-          node.content = node.content.sub!(/\A[\d\.]+/) do |str|
+          node.content = node.content.sub(/\A[\d\.]+/) do |str|
             rgx = /\A#{str}/
             @levelRegexp = @levelRegexp ? Regexp.union(@levelRegexp, rgx) : rgx
             ''