From 0bf7155fbabc3cd0aa87a3caa2e7c4fc4cab4dab Mon Sep 17 00:00:00 2001 From: Thibaut Courouble Date: Sun, 7 Oct 2018 11:19:27 -0400 Subject: [PATCH] Fix missing headings in Python 2.7 docs --- lib/docs/filters/python/clean_html.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/docs/filters/python/clean_html.rb b/lib/docs/filters/python/clean_html.rb index fef7948b..3209281c 100644 --- a/lib/docs/filters/python/clean_html.rb +++ b/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 ''