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

XPS file parser does not emit whitespace as expected

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.9.1, 2.9.2
    • 2.9.3, 3.0.1, 4.0.0
    • parser
    • None

    Description

      We are using tika to extract text from XPS files and have hit an issue where whitespace is not emitted where we would expect. See the attached example file where opening the file it visually has a large gap between "x" and "abcde1234f" but when extracted by tika it calls `characters` with "x" and then `characters` on "abcde1234f". We would expect a `ignorableWhitespace` in between those calls but we don't get one.

      I have a pull request that fixes the issue which I will submit.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            ruairidh-next Ruairidh Williamson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment