makohtml2html parser method issue
在 makohtml2html.
def format_body(self, html):
body = html.findall(
body_list = []
footer = self.format_
for b in body[:-1]:
【Description above in English 】
Here, because for a html file, it should be only have 1 body tag, so in for loop statement, body[:-1] will return a null list.
I think, this way of parsing mako template parser is wrong. and it needs a better parsing method.
【for chinese Sr. dev】
这里, 在 body = html.findall(
我觉得这里有个问题,
这个需要更好的解析方法。
Question information
- Language:
- English Edit question
- Status:
- Open
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask joeshen for more information if necessary.