Add spells to the ToC
This commit is contained in:
parent
cd5543f3b0
commit
71328e4a0b
@ -172,6 +172,10 @@ class BookOfFaces
|
||||
|
||||
rating_spells.sort_by { |spell| spell.name }.each do |spell|
|
||||
puts "\t\tCompiling #{spell.full_title} by #{spell.authors.join(', ')}"
|
||||
|
||||
pdf.outline.add_subsection_to(rating_title) do
|
||||
@pdf.outline.section spell.full_title, :destination => @pdf.page_number
|
||||
end
|
||||
|
||||
spell_ary = [{:text => "#{spell.name} (", :font => "Lilith", :color => "004E6D", :size => FONT_SIZE_SUBSECTION}]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user