diff --git a/poi-ooxml/src/test/java/org/apache/poi/xwpf/extractor/TestXWPFWordExtractor.java b/poi-ooxml/src/test/java/org/apache/poi/xwpf/extractor/TestXWPFWordExtractor.java index 6adbf31b1e..71120bd7b3 100644 --- a/poi-ooxml/src/test/java/org/apache/poi/xwpf/extractor/TestXWPFWordExtractor.java +++ b/poi-ooxml/src/test/java/org/apache/poi/xwpf/extractor/TestXWPFWordExtractor.java @@ -496,4 +496,13 @@ class TestXWPFWordExtractor { assertContains(txt, "but a great-looking résumé doesn’t have to be!"); } } + + @Test + void testTika3816() throws IOException { + try (XWPFDocument doc = XWPFTestDataSamples.openSampleDocument("tika-3816.docx"); + XWPFWordExtractor extractor = new XWPFWordExtractor(doc)) { + String txt = extractor.getText(); + assertContains(txt, "Note\tDetails"); + } + } } diff --git a/test-data/document/tika-3816.docx b/test-data/document/tika-3816.docx new file mode 100644 index 0000000000..54469f6537 Binary files /dev/null and b/test-data/document/tika-3816.docx differ