[
https://issues.apache.org/jira/browse/TIKA-2601?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16810640#comment-16810640
]
Funbit edited comment on TIKA-2601 at 4/5/19 9:21 AM:
------------------------------------------------------
Just in case, want to mention that this ticket does not seem to be a duplicate
for TIKA-2555, because here we have incorrectly opened/closed A and B HTML
tags, rather than a simple B and U overlap. For example, the attached
"Invalid-XML.doc" document produces the following XML output:
{{<p class="tOC_1">**{color:#ff0000}<b>{color}**2<a
href="_Toc531413823"{color:#FF0000}*/>*{color}<b><u>1. パッケージソフトウェア提案</u>}}
{{</b>*{color:#ff0000}</a>{color}*<b><u>}}
{{</u></b></p>}}
Hope it will help to narrow down the issue.
was (Author: funbit):
Just in case, want to mention that this ticket does not seem to be a duplicate
for TIKA-2555, because here we have incorrectly opened/closed A and B HTML
tags, rather than a simple B and U overlap. For example, the attached
"Invalid-XML.doc" document produces the following XML output:
{{<p class="tOC_1">*{color:#FF0000}<b>{color}*2<a
href="_Toc531413823"/><b><u>1. パッケージソフトウェア提案</u>}}
{{</b>*{color:#FF0000}</a>{color}*<b><u>}}
{{</u></b></p>}}
Hope it will help to narrow down the issue.
> Invalid XHTML output for some WORD documents
> --------------------------------------------
>
> Key: TIKA-2601
> URL: https://issues.apache.org/jira/browse/TIKA-2601
> Project: Tika
> Issue Type: Bug
> Components: parser
> Affects Versions: 1.17
> Environment: Linked is a sample document with its corresponding
> output.
> Reporter: Filip
> Priority: Major
> Attachments: Invalid-XML.doc, Test.doc, test.html
>
>
> In some WORD (.doc, .docx) documents the XHTML elements are not closed
> properly. This usually happens when there are link elements (<a>) as well as
> italic or bold elements (<b><i>).
>
> Fix should be done in
> [https://github.com/apache/tika/blob/master/tika-parsers/src/main/java/org/apache/tika/parser/microsoft/WordExtractor.java]
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)