Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-2321

Python file identified as troff if it starts by a multiline comment

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.14
    • Fix Version/s: None
    • Component/s: detector
    • Labels:
      None
    • Environment:

      Windows

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              JPMoresmau JP Moresmau
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: