Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add super in builer_inti_file #1702

Merged
merged 1 commit into from
May 31, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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