Skip to content

Commit

Permalink
Merge pull request #1702 from kmuto/super-in-builder_init_file
Browse files Browse the repository at this point in the history
add `super` in builer_inti_file
  • Loading branch information
takahashim authored May 31, 2021
2 parents 29ab6d5 + 9d3132d commit 115e23a
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/review/htmlbuilder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions lib/review/idgxmlbuilder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def extname
end

def builder_init_file
super
@warns = []
@errors = []
@section = 0
Expand Down
3 changes: 1 addition & 2 deletions lib/review/index_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/review/latexbuilder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ 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
@tsize = nil
@cellwidth = nil
@ol_num = nil
@first_line_num = nil
@sec_counter = SecCounter.new(5, @chapter)
@foottext = {}
setup_index
initialize_metachars(@book.config['texcommand'])
Expand Down
1 change: 1 addition & 0 deletions lib/review/markdownbuilder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def extname
end

def builder_init_file
super
@noindent = nil
@blank_seen = nil
@ul_indent = 0
Expand Down
2 changes: 1 addition & 1 deletion lib/review/plaintextbuilder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion lib/review/rstbuilder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 115e23a

Please sign in to comment.