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

XPS file parser does not emit whitespace as expected

    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

        1. testXLSX.xps
          29 kB
          Ruairidh Williamson

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: