Skip to content

Commit

Permalink
fix typo of format name
Browse files Browse the repository at this point in the history
  • Loading branch information
kmuto committed Sep 27, 2017
1 parent 9ed2966 commit b77ccb1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/review/htmlbuilder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -950,7 +950,7 @@ def inline_list(id)
if get_chap(chapter)
"#{I18n.t('list')}#{I18n.t('format_number', [get_chap(chapter), chapter.list(id).number])}"
else
"#{I18n.t('list')}#{I18n.t('format_number_without_header', [chapter.list(id).number])}"
"#{I18n.t('list')}#{I18n.t('format_number_without_chapter', [chapter.list(id).number])}"
end
if @book.config['chapterlink']
%Q(<span class="listref"><a href="./#{chapter.id}#{extname}##{id}">#{str}</a></span>)
Expand Down
6 changes: 3 additions & 3 deletions lib/review/latexbuilder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ def inline_title(id)
def inline_list(id)
chapter, id = extract_chapter_id(id)
if get_chap(chapter).nil?
macro('reviewlistref', I18n.t('format_number_without_header', [chapter.list(id).number]))
macro('reviewlistref', I18n.t('format_number_without_chapter', [chapter.list(id).number]))
else
macro('reviewlistref', I18n.t('format_number', [get_chap(chapter), chapter.list(id).number]))
end
Expand All @@ -722,7 +722,7 @@ def inline_list(id)
def inline_table(id)
chapter, id = extract_chapter_id(id)
if get_chap(chapter).nil?
macro('reviewtableref', I18n.t('format_number_without_header', [chapter.table(id).number]), table_label(id, chapter))
macro('reviewtableref', I18n.t('format_number_without_chapter', [chapter.table(id).number]), table_label(id, chapter))
else
macro('reviewtableref', I18n.t('format_number', [get_chap(chapter), chapter.table(id).number]), table_label(id, chapter))
end
Expand All @@ -731,7 +731,7 @@ def inline_table(id)
def inline_img(id)
chapter, id = extract_chapter_id(id)
if get_chap(chapter).nil?
macro('reviewimageref', I18n.t('format_number_without_header', [chapter.image(id).number]), image_label(id, chapter))
macro('reviewimageref', I18n.t('format_number_without_chapter', [chapter.image(id).number]), image_label(id, chapter))
else
macro('reviewimageref', I18n.t('format_number', [get_chap(chapter), chapter.image(id).number]), image_label(id, chapter))
end
Expand Down

0 comments on commit b77ccb1

Please sign in to comment.