WikiBuilder
329
个编辑
小无编辑摘要 |
无编辑摘要 |
||
第183行: | 第183行: | ||
local start,size,ed = string.match(_str,'(.*)<indent=(.-)%>(.*)'); | local start,size,ed = string.match(_str,'(.*)<indent=(.-)%>(.*)'); | ||
start = start or ''; | start = start or ''; | ||
if ed then | if size and ed then | ||
local inn,out = string.match(ed,'(.*)</indent>(.*)'); | |||
local inn,out = string.match( | |||
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>'; |