Commit 0fb3836d authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_corporate_identity: down correctly header

parent 7008e27b
......@@ -50,9 +50,10 @@ for header in re.findall("<h[1-6].*</h[1-6]>", contract_content or ""):
header_list = re.findall("<(h[1-6]).*>", header)
if len(header_list):
tag = header_list[0]
key = tag[1]
contract_content = contract_content.replace(
header,
header.replace(tag, 'h2')
header.replace(tag, 'h%s' % (int(key) + 1))
)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment