Skip to content

Commit

Permalink
Merge pull request #185 from devdanzin/fix_spurious_characters
Browse files Browse the repository at this point in the history
HTML report: replace ESCAPE character (fix #184)
  • Loading branch information
tonybaloney authored Jul 10, 2023
2 parents b19ee72 + 0fabcd7 commit 70ce4da
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/wily/commands/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,10 @@ def report(
for line in data[::-1]:
table_content += "<tr>"
for element in line:
element = element.replace("[32m", "<span class='green-color'>")
element = element.replace("[31m", "<span class='red-color'>")
element = element.replace("[33m", "<span class='orange-color'>")
element = element.replace("[0m", "</span>")
element = element.replace("\u001b[32m", "<span class='green-color'>")
element = element.replace("\u001b[31m", "<span class='red-color'>")
element = element.replace("\u001b[33m", "<span class='orange-color'>")
element = element.replace("\u001b[0m", "</span>")
table_content += f"<td>{element}</td>"
table_content += "</tr>"

Expand Down

0 comments on commit 70ce4da

Please sign in to comment.