diff --git a/hamlet/common/document.py b/hamlet/common/document.py index 2d7e6b7..da38c26 100644 --- a/hamlet/common/document.py +++ b/hamlet/common/document.py @@ -14,7 +14,7 @@ def factory(fp): :return: document object """ mimetype = magic.from_buffer(fp.read(8192), mime=True) - if mimetype in ["text/plain", "text/x-c'"]: + if mimetype in ["text/plain", "text/x-c"]: return TextDocument(fp) elif mimetype in ["application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/zip",