From 3e5d53b94cb535071ee0e4135de0f7d191cf26dc Mon Sep 17 00:00:00 2001
From: jwansek <eddie.atten.ea29@gmail.com>
Date: Mon, 21 Feb 2022 16:25:57 +0000
Subject: removed \rs for cross platform compatibility

---
 templates/markdown.jinja2 | Bin 9 -> 26 bytes
 templates/md.jinja2       |   4 ++--
 templates/text.jinja2     | Bin 10 -> 28 bytes
 templates/txt.jinja2      |   4 ++--
 4 files changed, 4 insertions(+), 4 deletions(-)

(limited to 'templates')

diff --git a/templates/markdown.jinja2 b/templates/markdown.jinja2
index 4f923d6..99c26ce 120000
Binary files a/templates/markdown.jinja2 and b/templates/markdown.jinja2 differ
diff --git a/templates/md.jinja2 b/templates/md.jinja2
index e1d95ca..e764a49 100644
--- a/templates/md.jinja2
+++ b/templates/md.jinja2
@@ -142,7 +142,7 @@ Please note that this file cannot be analysed or have tests preformed upon it-
 {%- if md_show_all_regex_occurrences == "True" and len_(results) > 0 %}
                     - Occurrences list:
 {%- for result in results %}
-                        - `{{ result }}`
+                        - `{{ result.replace("\n", "\\n") }}`
 {%- endfor -%}
 {%- if md_show_all_run_output == "True" %}
                     - Full runtime output:
@@ -161,6 +161,6 @@ Please note that this file cannot be analysed or have tests preformed upon it-
 {% if out != "stdout" and format != "html" -%}
 ## Tests:
 ```
-{{ test_results["pytest_report"] }}
+{{ test_results["pytest_report"].replace("\r", "") }}
 ```
 {%- endif -%}
\ No newline at end of file
diff --git a/templates/text.jinja2 b/templates/text.jinja2
index aad87bd..eca6ebd 120000
Binary files a/templates/text.jinja2 and b/templates/text.jinja2 differ
diff --git a/templates/txt.jinja2 b/templates/txt.jinja2
index 0d31047..9eb4beb 100644
--- a/templates/txt.jinja2
+++ b/templates/txt.jinja2
@@ -145,7 +145,7 @@ Report generated at {{ get_datetime() }}
                         {%- if txt_show_all_regex_occurrences == "True" and len_(results) > 0 %}
                         Occurrences list:
                         {%- for result in results %}
-                            {{ result }}
+                            {{ result.replace("\n", "\\n") }}
                         {%- endfor -%}
                         {%- endif -%}
                 {%- endfor -%}
@@ -164,5 +164,5 @@ Report generated at {{ get_datetime() }}
 {% endfor %}
 
 {% if out != "stdout" -%}
-{{ test_results["pytest_report"] }}
+{{ test_results["pytest_report"].replace("\r", "") }}
 {%- endif -%}
\ No newline at end of file
-- 
cgit v1.2.3