You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "JP Moresmau (JIRA)" <ji...@apache.org> on 2017/04/10 14:31:41 UTC
[jira] [Created] (TIKA-2321) Python file identified as troff if it
starts by a multiline comment
JP Moresmau created TIKA-2321:
---------------------------------
Summary: Python file identified as troff if it starts by a multiline comment
Key: TIKA-2321
URL: https://issues.apache.org/jira/browse/TIKA-2321
Project: Tika
Issue Type: Bug
Components: detector
Affects Versions: 1.14
Environment: Windows
Reporter: JP Moresmau
I have a python file, whose name ends with .py. It starts with a multiline comment:
```
'''
This is a multiline comment
'''
import ...
```
Tika 1.14 tells me this is text/troff because it has some magic detection looking at starting quotes.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)