You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Alan Hunter (JIRA)" <ji...@apache.org> on 2014/04/07 17:16:18 UTC

[jira] [Updated] (TIKA-1255) WordExtractor - bold hyperlink not closed properly

     [ https://issues.apache.org/jira/browse/TIKA-1255?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alan Hunter updated TIKA-1255:
------------------------------

    Attachment: WordParserTest.java
                testWORD_strikethrough_hyperlink.doc
                testWORD_italic_hyperlink.doc
                testWORD_bold_hyperlink.doc
                WordExtractor.java

Suggested patch, test and test documents

> WordExtractor - bold hyperlink not closed properly
> --------------------------------------------------
>
>                 Key: TIKA-1255
>                 URL: https://issues.apache.org/jira/browse/TIKA-1255
>             Project: Tika
>          Issue Type: Bug
>          Components: parser
>    Affects Versions: 1.2, 1.3, 1.4, 1.5
>         Environment: Any
>            Reporter: Alan Hunter
>            Priority: Minor
>         Attachments: WordExtractor.java, WordParserTest.java, example.doc, testWORD_bold_hyperlink.doc, testWORD_italic_hyperlink.doc, testWORD_strikethrough_hyperlink.doc
>
>
> If a Word document contains a bold hyperlink, the resulting xhtml is:
> <a href="http://www.testdomain.com/support/workcentre-7232-7242/file-download/enus.html?operatingSystem=macosx108&amp;amp;fileLanguage=en&amp;amp;contentId=126220&amp;amp;from=downloads&amp;amp;viewArchived=false"><b>Test link</a></b>
> The closing bold and anchor tags are transposed, which isn't valid XHTML.



--
This message was sent by Atlassian JIRA
(v6.2#6252)