Skip to content

Commit

Permalink
Merge pull request #1466 from kmuto/checkidx
Browse files Browse the repository at this point in the history
PDFMaker: check idx isn't empty before calling makeindex
  • Loading branch information
kmuto authored Jan 8, 2020
2 parents 98ea630 + 8a29266 commit 9d8bc0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/review/pdfmaker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def build_pdf
end

call_hook('hook_beforemakeindex')
if @config['pdfmaker']['makeindex'] && File.exist?("#{@mastertex}.idx")
if @config['pdfmaker']['makeindex'] && File.size?("#{@mastertex}.idx")
system_or_raise(*[makeindex_command, makeindex_options, @mastertex].flatten.compact)
system_or_raise(*[texcommand, texoptions, "#{@mastertex}.tex"].flatten.compact)
end
Expand Down

0 comments on commit 9d8bc0e

Please sign in to comment.