提交 62e2bc7e 编写于 作者: M Mr.doob

Build: Strip extra line breaks.

上级 818dd132
......@@ -63,7 +63,7 @@ def main(argv=None):
tmp.write(u'THREE.ShaderChunk[ \'' + os.path.splitext(os.path.basename(filename))[0] + u'\'] = "')
text = f.read()
text = re.sub(r"\t*//.*\n", "", text) # strip comments
text = text.replace('\n','\\n') # line breaks to \n
text = re.sub(r"\n+", '\\\\n', text) # line breaks to \n
tmp.write(text)
tmp.write(u'";\n\n')
else:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册