Skip to content

Commit

Permalink
Merge pull request #1561 from kmuto/fix-1559
Browse files Browse the repository at this point in the history
values in @locale_latex should be String
  • Loading branch information
takahashim authored Aug 29, 2020
2 parents 0b94d58 + f337965 commit 21cbbf2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/review/pdfmaker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -439,12 +439,12 @@ def erb_config
part_tuple = I18n.get('part').split(/%[A-Za-z]{1,3}/, 2)
chapter_tuple = I18n.get('chapter').split(/%[A-Za-z]{1,3}/, 2)
appendix_tuple = I18n.get('appendix').split(/%[A-Za-z]{1,3}/, 2)
@locale_latex['prepartname'] = part_tuple[0]
@locale_latex['postpartname'] = part_tuple[1]
@locale_latex['prechaptername'] = chapter_tuple[0]
@locale_latex['postchaptername'] = chapter_tuple[1]
@locale_latex['preappendixname'] = appendix_tuple[0]
@locale_latex['postappendixname'] = appendix_tuple[1]
@locale_latex['prepartname'] = part_tuple[0].to_s
@locale_latex['postpartname'] = part_tuple[1].to_s
@locale_latex['prechaptername'] = chapter_tuple[0].to_s
@locale_latex['postchaptername'] = chapter_tuple[1].to_s
@locale_latex['preappendixname'] = appendix_tuple[0].to_s
@locale_latex['postappendixname'] = appendix_tuple[1].to_s
end

def erb_content(file)
Expand Down

0 comments on commit 21cbbf2

Please sign in to comment.