-- class = inc:gsub('/index%.[%w]+$',''):match('^.*/([^/%.%?&]+)')
-- id = inc:gsub('/index%.[%w]+$','')
local name = self:filepath2name(inc)
- inc_content = '<div'
- .. ' id="inc-' .. name .. '"'
- .. ' class="' .. name .. '"'
- .. '>' .. inc_content .. '</div>'
+ if false then
+ inc_content = '<div'
+ .. ' id="inc-' .. name .. '"'
+ .. ' class="' .. name .. '"'
+ .. '>' .. inc_content .. '</div>'
+ end
end
content = ''
.. content:sub(0,p1-1)
content = content:gsub('<p><div','<div')
content = content:gsub('div></p>','div>')
+ content = content:gsub('[%s]*<tr>[%s]*<th>[%s]*</th>[%s]*<th>[%s]*</th>[%s]*</tr>[%s]*','')
return content
end