History

Fix missing headings in Python 2.7 docs

Thibaut Courouble committed 8 years ago

Commit 0bf71551 parent 31efb9d1 file · +1 −1Browse files

Showing the changes to lib (1 of 1 file). Show all

Unified · Split

lib/docs/filters/python/clean_html.rb+1−1
@@ -15,7 +15,7 @@ module Docs · 14 unmodified lines
1515
1616 def other
1717 css('h1').each do |node|
18− node.content = node.content.sub!(/\A[\d\.]+/) do |str|
18+ node.content = node.content.sub(/\A[\d\.]+/) do |str|
1919 rgx = /\A#{str}/
2020 @levelRegexp = @levelRegexp ? Regexp.union(@levelRegexp, rgx) : rgx
2121 ''