45,645
edits
No edit summary |
No edit summary |
||
Line 126: | Line 126: | ||
end | end | ||
local text_classes = data.text_classes or "form-of-definition | local text_classes = data.text_classes or "form-of-definition" | ||
local terminfo_classes = data.text_classes or "form-of-definition-link" | local terminfo_classes = data.text_classes or "form-of-definition-link" | ||
local parts = {} | local parts = {} | ||
table.insert(parts, "<span class='" .. text_classes .. "'>") | table.insert(parts, "<span class='" .. text_classes .. "' style='font-weight: bold;'>") | ||
table.insert(parts, data.text) | table.insert(parts, data.text) | ||
if data.text ~= "" and data.terminfo then | if data.text ~= "" and data.terminfo then | ||
Line 135: | Line 135: | ||
end | end | ||
if data.terminfo then | if data.terminfo then | ||
table.insert(parts, "<span class='" .. terminfo_classes .. "'>") | table.insert(parts, "<span class='" .. terminfo_classes .. "' style='font-weight: bold;'>") | ||
if type(data.terminfo) == "string" then | if type(data.terminfo) == "string" then | ||
table.insert(parts, data.terminfo) | table.insert(parts, data.terminfo) | ||
Line 846: | Line 846: | ||
format_data.posttext = (data.posttext or "") .. ":" | format_data.posttext = (data.posttext or "") .. ":" | ||
local link = export.format_form_of(format_data) | local link = export.format_form_of(format_data) | ||
local text_classes = data.text_classes or "form-of-definition | local text_classes = data.text_classes or "form-of-definition" | ||
return link .."\n## <span class='" .. text_classes .. "'>" .. | return link .."\n## <span class='" .. text_classes .. "' style='font-weight: bold;'>" .. | ||
table.concat(inflections, "</span>\n## <span class='" .. text_classes .. "'>") .. "</span>" | table.concat(inflections, "</span>\n## <span class='" .. text_classes .. "' style='font-weight: bold;'>") .. "</span>" | ||
end | end | ||
end | end |