Module:Excerpt: Difference between revisions

Content deleted Content added
Calling getContent more properly (no functional difference)
Do not try to append paragraphs whose numbers which exceed the number actually present
Line 21:
local newtext = ""
for _, p in pairs(paragraphlist) do
if paras[p] then newtext = newtext .. sep .. paras[p] end -- else p exceeds number of paragraphs found
sep = "\n\n"
end