Skip to content

Commit

Permalink
Fix missing listing name when using syntax highlighting
Browse files Browse the repository at this point in the history
When using syntax highlighting in review-pdfmaker, a caption of list
does not have a prefix such as 'リスト' or 'List' etc.

Actual caption: 1.1 Sample Code
Expected caption: List 1.1 Sample Code

This is because the value of lstlistingname is always empty.
  • Loading branch information
orangain committed Apr 25, 2015
1 parent f0a0216 commit 8598b23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/review/layout.tex.erb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<% else %>
\usepackage{listings}
<% end %>
\renewcommand{\lstlistingname}{<%I18n.t("list")%>}
\renewcommand{\lstlistingname}{<%= I18n.t("list")%>}
\lstset{%
breaklines=true,%
breakautoindent=false,%
Expand Down

0 comments on commit 8598b23

Please sign in to comment.