| |
@@ -159,9 +159,14 @@
|
| |
{% endif %}
|
| |
|
| |
{% if output_type=='file' %}
|
| |
- {% autoescape false %}
|
| |
- {{ content | format_loc }}
|
| |
- {% endautoescape %}
|
| |
+ {% if content.size != 0 %}
|
| |
+ {% autoescape false %}
|
| |
+ {{ content | format_loc }}
|
| |
+ {% endautoescape %}
|
| |
+ {% else %}
|
| |
+ <p> No content in the file </p>
|
| |
+ {% endif %}
|
| |
+
|
| |
{% elif output_type == 'markup' %}
|
| |
<div class="m-a-2">
|
| |
{% autoescape false %}
|
| |
Empty file rendering throws 500 with this fix
the file gets rendered saying no content in the file
Signed-off-by: Farhaan Bukhsh farhaan.bukhsh@gmail.com