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

Underlined text is not decorated as such when extracting from word documents

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0, 1.14
    • Fix Version/s: 1.17
    • Component/s: parser
    • Labels:
      None

      Description

      When extracting from doc and docx bold and italic text decoration is extracted, however underlining is not. Can be demonstrated in WordParserTest or OOXMLParserTest (change to docx) with the following test case.

      WordParserTest.java
          @Test
          public void testTextDecoration() throws Exception {
            XMLResult result = getXML("testWORD_various.doc");
            String xml = result.xml;
      
            assertTrue(xml.contains("<b>Bold</b>"));
            assertTrue(xml.contains("<i>italic</i>"));
            assertTrue(xml.contains("<u>underline</u>"));
      
          }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                davemeikle Dave Meikle
                Reporter:
                hendrens Stuart Hendren
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: