TOC: use bidi_wrap_func (#8879)

Fixes RTL issue noticed at https://github.com/koreader/koreader/pull/8876#issue-1161280868
reviewable/pr8882/r1
yparitcher 2 years ago committed by GitHub
parent 441036ed1f
commit 23d12c3f04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -667,6 +667,7 @@ function ReaderToc:onShowToc()
v.index = k
v.indent = toc_indent * (v.depth-1)
v.text = self:cleanUpTocTitle(v.title, true)
v.bidi_wrap_func = BD.auto
v.mandatory = v.page
if has_hidden_flows then
local flow = self.ui.document:getPageFlow(v.page)

Loading…
Cancel
Save