67 741
contributi
Nessun oggetto della modifica |
Nessun oggetto della modifica |
||
Riga 280: | Riga 280: | ||
else | else | ||
ParaString = frame.args[2] | ParaString = frame.args[2] | ||
if string.find(ParaString, "<li>") | if string.find(ParaString, "<li>") == nil then | ||
-- | -- Add dummy tags to use a single process afterwards | ||
ParaString = "<li>" .. ParaString .. "</li>" | |||
end | end | ||
-- Look for <i> to determine if property is Assignment | |||
if string.find(ParaString, "<i>") == nil then | |||
LIPattern = "<li>.-%[%[(.-)%]%].-</li>" | |||
else | |||
LIPattern = "<li>.-<i>%[%[(.-)%]%]</i>.-</li>" | |||
end | |||
--Process UL or OL | |||
for Item in string.gmatch(ParaString, LIPattern) do | |||
Item = string.gsub(Item, "(|.*)", "") | |||
table.insert(FinalArray, Item) | |||
end | |||
PropValue = table.concat(FinalArray, Separator) .. SepDeclaration | |||
end | end | ||
end | end |