lib/review/latexbuilder.rb in review-1.3.0 vs lib/review/latexbuilder.rb in review-1.4.0
- old
+ new
@@ -601,13 +601,14 @@
error "unknown chapter: #{id}"
nofunc_text("[UnknownChapter:#{id}]")
end
def inline_title(id)
+ title = super
if @book.config["chapterlink"]
- "\\hyperref[chap:#{id}]{#{@chapter.env.chapter_index.title(id)}}"
+ "\\hyperref[chap:#{id}]{#{title}}"
else
- @chapter.env.chapter_index.title(id)
+ title
end
rescue KeyError
error "unknown chapter: #{id}"
nofunc_text("[UnknownChapter:#{id}]")
end