From 45a8c47a10bc120164b43216e614b603420442a9 Mon Sep 17 00:00:00 2001 From: Josh Asplund Date: Thu, 24 May 2018 11:33:30 -0500 Subject: [PATCH] Fixes newline spacing for tests --- mythril/analysis/templates/report_as_markdown.jinja2 | 2 -- mythril/analysis/templates/report_as_text.jinja2 | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/mythril/analysis/templates/report_as_markdown.jinja2 b/mythril/analysis/templates/report_as_markdown.jinja2 index 2d86c574..fb8bc961 100644 --- a/mythril/analysis/templates/report_as_markdown.jinja2 +++ b/mythril/analysis/templates/report_as_markdown.jinja2 @@ -12,7 +12,6 @@ ### Description {{ issue.description }} - {% if issue.filename and issue.lineno -%} In file: {{ issue.filename }}:{{ issue.lineno }} {%- endif -%} @@ -30,7 +29,6 @@ In file: {{ issue.filename }}:{{ issue.lineno }} {{ issue.debug }} {%- endif %} - {% endfor -%} {%- else -%} The analysis was completed successfully. No issues were detected. diff --git a/mythril/analysis/templates/report_as_text.jinja2 b/mythril/analysis/templates/report_as_text.jinja2 index 8e7856aa..49040c5c 100644 --- a/mythril/analysis/templates/report_as_text.jinja2 +++ b/mythril/analysis/templates/report_as_text.jinja2 @@ -10,7 +10,8 @@ PC address: {{ issue.address }} {% if issue.filename and issue.lineno -%} In file: {{ issue.filename }}:{{ issue.lineno }} {%- endif %} -{% if issue.code %} +{%- if issue.code %} + {{ issue.code }} --------------------