You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Pablo Queixalos (Updated) (JIRA)" <ji...@apache.org> on 2011/10/18 12:04:10 UTC
[jira] [Updated] (TIKA-754) Automatic line break insertion (BR
element) instead of '\n' in XHTMLContentHandler
[ https://issues.apache.org/jira/browse/TIKA-754?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pablo Queixalos updated TIKA-754:
---------------------------------
Attachment: TIKA-754.poc.patch
Proof of concept: works fine but breaks tests with 33 Failures and 4 Errors.
> Automatic line break insertion (BR element) instead of '\n' in XHTMLContentHandler
> ----------------------------------------------------------------------------------
>
> Key: TIKA-754
> URL: https://issues.apache.org/jira/browse/TIKA-754
> Project: Tika
> Issue Type: Improvement
> Affects Versions: 0.10, 1.0
> Reporter: Pablo Queixalos
> Priority: Minor
> Fix For: 1.0
>
> Attachments: TIKA-754.poc.patch
>
>
> As seen with some parsers (PDF, PPT), some text blocks still contains text carriage returns ('\n') in the outputted XHTML.
> A global fix for this could be located in XHTMLContentHandler.characters(...).
> By analyzing the given char array, when a '\n' char is encountered insert a BR element instead.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira