\n
\n}
if @per.seg_endnotes[@per.get_hash_fn].flatten.length > 0
@per.tail << format_head_seg.endnote_mark
@per.tail << @per.seg_endnotes[@per.get_hash_fn].flatten
#endnotes deposited at end of individual segments ||@|EXTRACTION OF ENDNOTES|
end
@per.tail << '
'
@per.tail << '
' #this div closes div class content
end
@per.closed=[]
@per.closed << format_head_seg.xhtml_close
end
def reinitialise(per)
per.headings,per.main,per.tail,per.credits=Array.new(4){[]}
end
def cleanup(md,per)
reinitialise(per)
@@tracker=0
@per.seg_endnotes,@per.seg_subtoc={},{}
@per.seg_endnotes_array,@per.seg_subtoc_array=[],[]
per.endnote_all=[]
end
def get_subtoc_endnotes(data,per) #get endnotes & sub-table of contents subtoc
@per=per
data.each do |dob|
dob.obj=dob.obj.gsub(/