Skip to content

Commit

Permalink
allow omit a caption of //source in latexbuilder. Closes #834
Browse files Browse the repository at this point in the history
  • Loading branch information
kmuto committed Oct 29, 2017
1 parent 8d2b860 commit db374f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/review/latexbuilder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ def make_code_block_args(title, caption, lang, first_line_num: 1)
args
end

def source(lines, caption, lang = nil)
def source(lines, caption = nil, lang = nil)
if highlight_listings?
common_code_block_lst(nil, lines, 'reviewsourcelst', 'title', caption, lang)
else
Expand Down

0 comments on commit db374f0

Please sign in to comment.