append page number in toc entry

This commit is contained in:
chrox
2013-12-19 23:14:27 +08:00
parent 93866822d0
commit 2bb3c7c286

View File

@@ -83,6 +83,7 @@ function ReaderToc:onShowToc()
if #self.toc > 0 and not self.toc[1].text then
for _,v in ipairs(self.toc) do
v.text = (" "):rep(v.depth-1)..self:cleanUpTocTitle(v.title)
v.mandatory = v.page
end
end