Commit 6c5901e9 by sikang

test

parent 0582cca3
......@@ -93,10 +93,10 @@ class LayoutGarble:
with open(path,"w+",encoding='utf-8') as fin:
ignores = []
for line in lines:
view_name = line.replace("<","").replace("/","").replace(">","")
view_name = line.replace("<","").replace("/","").replace(">","").replace("\n","")
#自定义layout忽略
if "<" in line and "." in line and "/" not in line:
items = line.split(".")
items = view_name.split(".")
if items[len(items)-1] in self.__config['ignore_layout']:
ignores.append(view_name)
......
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