Module:pollasena-roots: Difference between revisions

No edit summary
No edit summary
 
Line 207: Line 207:
separator = item.term
separator = item.term
elseif item.term then
elseif item.term then
if root_index > 1 and match(items[root_index - 1].term, "%-$") then -- no asterisk after hyphen
if root_index > 1 and separator ~= "+" and match(items[root_index - 1].term, "%-$") then -- no asterisk after hyphen
if not item.alt then
if not item.alt then
item.alt = item.term:gsub("^%*", "")
item.alt = item.term:gsub("^%*", "")