浏览代码

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
             ''