Merge pull request #864 from OverKit/master
check letter % after removing spaces or tabs in the left
This commit is contained in:
		
						commit
						12d66777cc
					
				@ -127,7 +127,7 @@ def rm_comments(main_file):
 | 
				
			|||||||
    new_file_remove_comment_lines = []
 | 
					    new_file_remove_comment_lines = []
 | 
				
			||||||
    for l in main_file.splitlines():
 | 
					    for l in main_file.splitlines():
 | 
				
			||||||
        # 删除整行的空注释
 | 
					        # 删除整行的空注释
 | 
				
			||||||
        if l.startswith("%") or (l.startswith(" ") and l.lstrip().startswith("%")):
 | 
					        if l.lstrip().startswith("%"):
 | 
				
			||||||
            pass
 | 
					            pass
 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
            new_file_remove_comment_lines.append(l)
 | 
					            new_file_remove_comment_lines.append(l)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user