Commit 6c5901e9 by sikang

test

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