From 23b4f8c931d43541b5ee7ba20f23354dc914a2ac Mon Sep 17 00:00:00 2001 From: Andrew Hamilton Date: Tue, 3 Sep 2019 15:53:53 +1000 Subject: [PATCH] tools: Fix truncated file contents. --- eris/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eris/tools.py b/eris/tools.py index d719446..973fddf 100644 --- a/eris/tools.py +++ b/eris/tools.py @@ -249,7 +249,7 @@ def contents(path): tail = file_.read() except UnicodeDecodeError: return Status.not_applicable, "Not unicode" - text = _fix_input(head) + text = _fix_input(head + tail) try: text = _syntax_highlight_using_path(text, path) except pygments.util.ClassNotFound: