check letter % after removing spaces or tabs in the left

这个提交包含在:
OverKit
2023-06-12 10:09:52 +08:00
提交者 GitHub
父节点 9fd212652e
当前提交 9ac3d0d65d

查看文件

@@ -127,7 +127,7 @@ def rm_comments(main_file):
new_file_remove_comment_lines = []
for l in main_file.splitlines():
# 删除整行的空注释
if l.startswith("%") or (l.startswith(" ") and l.lstrip().startswith("%")):
if l.lstrip().startswith("%"):
pass
else:
new_file_remove_comment_lines.append(l)