WikiBuilder
329
次編輯
無編輯摘要 |
小無編輯摘要 |
||
第184行: | 第184行: | ||
start = start or ''; | start = start or ''; | ||
if ed then | if ed then | ||
local inn,out = string.match( | local clone_ed = ed; | ||
local inn,out = string.match(clone_ed,'(.*)</indent>(.*)'); | |||
if inn and out then _str = start .. string.format("<span class='Indented indent_%s' style='padding-left:%.3fem;'>",size,(tonumber(size)/5)) .. inn .. '</span>' .. out; | if inn and out then _str = start .. string.format("<span class='Indented indent_%s' style='padding-left:%.3fem;'>",size,(tonumber(size)/5)) .. inn .. '</span>' .. out; | ||
else _str = start .. string.format("<span class='Indented indent_%s' style='padding-left:%.3fem;'>",size,(tonumber(size)/5)) .. ed .. '</span>'; | else _str = start .. string.format("<span class='Indented indent_%s' style='padding-left:%.3fem;'>",size,(tonumber(size)/5)) .. ed .. '</span>'; |