Fix missing headings in Python 2.7 docs

pull/885/merge
Thibaut Courouble 6 years ago
parent 31efb9d0f7
commit 0bf7155fba

@ -15,7 +15,7 @@ module Docs
def other def other
css('h1').each do |node| 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}/ rgx = /\A#{str}/
@levelRegexp = @levelRegexp ? Regexp.union(@levelRegexp, rgx) : rgx @levelRegexp = @levelRegexp ? Regexp.union(@levelRegexp, rgx) : rgx
'' ''

Loading…
Cancel
Save