switched TOC entry sanitizing to Lua code

This commit is contained in:
HW
2012-03-04 18:59:50 +01:00
parent 0e3c91931d
commit 3c56f50cae
2 changed files with 1 additions and 11 deletions

View File

@@ -336,7 +336,7 @@ function PDFReader:showTOC()
-- build menu items
for _k,_v in ipairs(toc) do
table.insert(menu_items,
(" "):rep(_v.depth-1).._v.title)
(" "):rep(_v.depth-1) .. _v.title:gsub("\13", ""))
end
toc_menu = SelectMenu:new{
menu_title = "Table of Contents",