diff --git a/lib/review/htmlbuilder.rb b/lib/review/htmlbuilder.rb index 5dc8b4385..a55230b26 100644 --- a/lib/review/htmlbuilder.rb +++ b/lib/review/htmlbuilder.rb @@ -42,11 +42,11 @@ def extname end def builder_init_file + super @noindent = nil @ol_num = nil @chapter.book.image_types = %w[.png .jpg .jpeg .gif .svg] @column = 0 - @sec_counter = SecCounter.new(5, @chapter) @nonum_counter = 0 @first_line_num = nil @body_ext = nil diff --git a/lib/review/idgxmlbuilder.rb b/lib/review/idgxmlbuilder.rb index 70b53fab0..27115dc76 100644 --- a/lib/review/idgxmlbuilder.rb +++ b/lib/review/idgxmlbuilder.rb @@ -47,6 +47,7 @@ def extname end def builder_init_file + super @warns = [] @errors = [] @section = 0 diff --git a/lib/review/index_builder.rb b/lib/review/index_builder.rb index 2d362eccb..0ae2c1ab5 100644 --- a/lib/review/index_builder.rb +++ b/lib/review/index_builder.rb @@ -51,8 +51,7 @@ def bind(compiler, chapter, location) end def builder_init_file - @sec_counter = SecCounter.new(5, @chapter) - + super @headline_stack = [] @list_index = ReVIEW::Book::ListIndex.new diff --git a/lib/review/latexbuilder.rb b/lib/review/latexbuilder.rb index 59999437f..5b156f2f4 100644 --- a/lib/review/latexbuilder.rb +++ b/lib/review/latexbuilder.rb @@ -28,6 +28,7 @@ def extname end def builder_init_file + super @chapter.book.image_types = %w[.ai .eps .pdf .tif .tiff .png .bmp .jpg .jpeg .gif] @blank_needed = false @latex_tsize = nil @@ -35,7 +36,6 @@ def builder_init_file @cellwidth = nil @ol_num = nil @first_line_num = nil - @sec_counter = SecCounter.new(5, @chapter) @foottext = {} setup_index initialize_metachars(@book.config['texcommand']) diff --git a/lib/review/markdownbuilder.rb b/lib/review/markdownbuilder.rb index eea3c3fbc..26afd014d 100644 --- a/lib/review/markdownbuilder.rb +++ b/lib/review/markdownbuilder.rb @@ -18,6 +18,7 @@ def extname end def builder_init_file + super @noindent = nil @blank_seen = nil @ul_indent = 0 diff --git a/lib/review/plaintextbuilder.rb b/lib/review/plaintextbuilder.rb index d6dc50890..d3e1d1f33 100644 --- a/lib/review/plaintextbuilder.rb +++ b/lib/review/plaintextbuilder.rb @@ -42,12 +42,12 @@ def extname end def builder_init_file + super @section = 0 @subsection = 0 @subsubsection = 0 @subsubsubsection = 0 @blank_seen = true - @sec_counter = SecCounter.new(5, @chapter) end private :builder_init_file diff --git a/lib/review/rstbuilder.rb b/lib/review/rstbuilder.rb index 460f7ab78..e29c6c8e3 100644 --- a/lib/review/rstbuilder.rb +++ b/lib/review/rstbuilder.rb @@ -54,12 +54,12 @@ def extname end def builder_init_file + super @section = 0 @subsection = 0 @subsubsection = 0 @subsubsubsection = 0 @blank_seen = true - @sec_counter = SecCounter.new(5, @chapter) @ul_indent = 0 @ol_indent = 0 @in_role = false