From e62a35a7cf9e113e033bb24e4b59e8dec9cd3842 Mon Sep 17 00:00:00 2001 From: Brandon Nguyen <112731698+bxngyn@users.noreply.github.com> Date: Fri, 11 Jul 2025 12:03:58 -0400 Subject: [PATCH 01/79] Update _api.py --- check50/_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check50/_api.py b/check50/_api.py index bb7f2e0..fdbd2d1 100644 --- a/check50/_api.py +++ b/check50/_api.py @@ -463,7 +463,7 @@ def __init__(self, expected, actual, help=None): if actual == EOF: actual = "EOF" - self.payload.update({"expected": expected, "actual": actual}) + self.payload.update({"expected": repr(expected), "actual": repr(actual)}) def hidden(failure_rationale): From 038dbb728f018f5e149f984a7d3eb8e7ca4daeb4 Mon Sep 17 00:00:00 2001 From: Brandon Nguyen <112731698+bxngyn@users.noreply.github.com> Date: Fri, 11 Jul 2025 12:10:26 -0400 Subject: [PATCH 02/79] Update results.html --- check50/renderer/templates/results.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/check50/renderer/templates/results.html b/check50/renderer/templates/results.html index 6a51efa..1871583 100644 --- a/check50/renderer/templates/results.html +++ b/check50/renderer/templates/results.html @@ -27,12 +27,12 @@
Cause
{% autoescape false %}
- {{ check.cause.rationale | e | replace(" ", " ") }}
+ {{ check.cause.rationale | replace(" ", " ") }}
{% endautoescape %}
{% autoescape false %}
{% if check.cause.help %}
- {{ check.cause.help | e | replace(" ", " ") }}
+ {{ check.cause.help | replace(" ", " ") }}
{% endif %}
{% endautoescape %}
@@ -82,9 +82,9 @@
Cause
{% autoescape false %}
- {{ check.cause.rationale | replace(" ", " ") }}
+ {{ check.cause.rationale | e | replace(" ", " ") }}
{% endautoescape %}
{% autoescape false %}
{% if check.cause.help %}
- {{ check.cause.help | replace(" ", " ") }}
+ {{ check.cause.help | e | replace(" ", " ") }}
{% endif %}
{% endautoescape %}
@@ -82,9 +82,9 @@
+ {{ expected }}
+
+ {{ actual }}
+
- {{ expected }}
-
+
- {{ actual }}
-
+