Skip to content

Commit

Permalink
Update check-tags.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yikeke authored Sep 3, 2020
1 parent 085129f commit 083d442
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scripts/check-tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def filter_content(content):
result_findall = re.findall(r'<([^\n`>]*)>', content)
if len(result_findall) == 0:
# print("The edited markdown file " + filename + " has no tags!\n")
status_code = 0
continue
else:
result_finditer = re.finditer(r'<([^\n`>]*)>', content)
stack = []
Expand Down Expand Up @@ -115,9 +115,6 @@ def filter_content(content):
stack = ['<' + i + '>' for i in stack]
print("ERROR: " + filename + ' has unclosed tags: ' + ', '.join(stack) + '.\n')
status_code = 1
else:
# print("The edited markdown file has tags. But all tags are closed, congratulations!\n")
status_code = 0

if status_code:
print("HINT: Unclosed tags will cause website build failure. Please fix the reported unclosed tags. You can use backticks `` to wrap them or close them. Thanks.")
Expand Down

0 comments on commit 083d442

Please sign in to comment.