From db374f0bfe97e81d9a377712a65db63c99714af6 Mon Sep 17 00:00:00 2001 From: Kenshi Muto Date: Sun, 29 Oct 2017 15:26:10 +0900 Subject: [PATCH] allow omit a caption of //source in latexbuilder. Closes #834 --- lib/review/latexbuilder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/review/latexbuilder.rb b/lib/review/latexbuilder.rb index 138aca551..ca554cb3f 100644 --- a/lib/review/latexbuilder.rb +++ b/lib/review/latexbuilder.rb @@ -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