Dict: make html and text results look similar (#3582)

This commit is contained in:
poire-z
2018-01-08 16:16:39 +01:00
committed by Frans de Jonge
parent bfb07c79ef
commit 262e55d0ae

View File

@@ -160,6 +160,9 @@ end
function DictQuickLookup:getHtmlDictionaryCss()
-- Using Noto Sans because Nimbus doesn't contain the IPA symbols.
-- 'line-height: 1.3' to have it similar to textboxwidget,
-- and follow user's choice on justification
local css_justify = G_reader_settings:nilOrTrue("dict_justify") and "text-align: justify;" or ""
local css = [[
@page {
margin: 0;
@@ -168,6 +171,8 @@ function DictQuickLookup:getHtmlDictionaryCss()
body {
margin: 0;
line-height: 1.3;
]]..css_justify..[[
}
]]