mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-18 12:27:51 +00:00
wmlunits: Specify error as class in html reports (#7581)
This commit is contained in:
parent
4494689d68
commit
5eaed1b744
@ -145,7 +145,7 @@ def main(folder):
|
||||
for line in text.splitlines():
|
||||
line = line.strip()
|
||||
if line in ["<INTERNAL ERROR>", "<WML ERROR>", "<PARSE ERROR>", "<TIMEOUT ERROR>"]:
|
||||
htmlerr.write('<p>')
|
||||
htmlerr.write('<p class="error %s">' % line[1:-1].replace(" ", "-").lower())
|
||||
elif line in ["</INTERNAL ERROR>", "</WML ERROR>", "</PARSE ERROR>", "</TIMEOUT ERROR>"]:
|
||||
htmlerr.write('</p>')
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user