tools: Fix truncated file contents.
This commit is contained in:
parent
03f348622e
commit
23b4f8c931
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue