Skip to content
Browse files

Merge branch 'fixed_bib_compile_inline' of https://github.com/authorN…

…ari/review into authorNari-fixed_bib_compile_inline
  • Loading branch information...
2 parents f39b712 + e847dad commit 0bcf48cfe42cd0ee4bfab3568a8d597ee9b228c5 @kmuto kmuto committed
Showing with 6 additions and 6 deletions.
  1. +1 −1 lib/review/htmlbuilder.rb
  2. +1 −1 lib/review/latexbuilder.rb
  3. +2 −2 test/test_htmlbuilder.rb
  4. +2 −2 test/test_latexbuilder.rb
View
2 lib/review/htmlbuilder.rb
@@ -791,7 +791,7 @@ def bibpaper(lines, id, caption)
def bibpaper_header(id, caption)
puts %Q(<a name="bib-#{id}">)
- puts "[#{@chapter.bibpaper(id).number}] #{caption}"
+ puts "[#{@chapter.bibpaper(id).number}] #{compile_inline(caption)}"
puts %Q(</a>)
end
View
2 lib/review/latexbuilder.rb
@@ -596,7 +596,7 @@ def inline_uchar(str)
end
def bibpaper_header(id, caption)
- puts "[#{@chapter.bibpaper(id).number}] #{caption}"
+ puts "[#{@chapter.bibpaper(id).number}] #{compile_inline(caption)}"
end
def bibpaper_bibpaper(id, caption, lines)
View
4 test/test_htmlbuilder.rb
@@ -238,8 +238,8 @@ def @chapter.bibpaper(id)
BibpaperIndex::Item.new("samplebib",1,"sample bib")
end
- @builder.bibpaper(["a", "b"], "samplebib", "sample bib")
- assert_equal %Q|<div>\n<a name=\"bib-samplebib\">\n[1] sample bib\n</a>\n<p>\na\nb\n</p>\n</div>\n|, @builder.raw_result
+ @builder.bibpaper(["a", "b"], "samplebib", "sample bib @<b>{bold}")
+ assert_equal %Q|<div>\n<a name=\"bib-samplebib\">\n[1] sample bib <b>bold</b>\n</a>\n<p>\na\nb\n</p>\n</div>\n|, @builder.raw_result
end
def column_helper(review)
View
4 test/test_latexbuilder.rb
@@ -295,8 +295,8 @@ def @chapter.bibpaper(id)
BibpaperIndex::Item.new("samplebib",1,"sample bib")
end
- @builder.bibpaper(["a", "b"], "samplebib", "sample bib")
- assert_equal %Q|[1] sample bib\n\na\nb\n\n|, @builder.raw_result
+ @builder.bibpaper(["a", "b"], "samplebib", "sample bib @<b>{bold}")
+ assert_equal %Q|[1] sample bib \\textbf{bold}\n\na\nb\n\n|, @builder.raw_result
end
def test_bibpaper_without_body

0 comments on commit 0bcf48c

Please sign in to comment.
Something went wrong with that request. Please try again.