diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-02-10 13:42:55 +0100 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-04-16 16:41:51 +0200 |
| commit | ecbe63a787ea391b0db03c6f4bc7e5b8f79195ae (patch) | |
| tree | cba739b091ac6756afb445756d9cda4abc27f4cc /ishtar_common | |
| parent | 19f9b93238c3277cacdfa153db18c8261cb41ba8 (diff) | |
| download | Ishtar-ecbe63a787ea391b0db03c6f4bc7e5b8f79195ae.tar.bz2 Ishtar-ecbe63a787ea391b0db03c6f4bc7e5b8f79195ae.zip | |
🐛 relation graphs - fix '\n' string (refs #5500)
Diffstat (limited to 'ishtar_common')
| -rw-r--r-- | ishtar_common/templatetags/ishtar_helpers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ishtar_common/templatetags/ishtar_helpers.py b/ishtar_common/templatetags/ishtar_helpers.py index 28c70de0f..f94339fc5 100644 --- a/ishtar_common/templatetags/ishtar_helpers.py +++ b/ishtar_common/templatetags/ishtar_helpers.py @@ -79,7 +79,7 @@ def safe_or(item, args): def file_content(value): if value: try: - return mark_safe(value.read()) + return mark_safe(value.read().decode("utf-8")) except FileNotFoundError: pass return "" |
