소스 검색

Fix missing headings in Python 2.7 docs

Thibaut Courouble 7 년 전
부모
커밋
0bf7155fba
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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
             ''