tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aleksandr Dubinsky (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (TIKA-1309) RTF TextExtractor can ignore consecutive linebreaks
Date Sat, 24 May 2014 14:08:01 GMT

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

Aleksandr Dubinsky updated TIKA-1309:
-------------------------------------

    Attachment: 0001-fix-RTF-ignores-consecutive-newlines.patch

> RTF TextExtractor can ignore consecutive linebreaks
> ---------------------------------------------------
>
>                 Key: TIKA-1309
>                 URL: https://issues.apache.org/jira/browse/TIKA-1309
>             Project: Tika
>          Issue Type: Bug
>          Components: parser
>    Affects Versions: 1.5, 1.6
>            Reporter: Aleksandr Dubinsky
>         Attachments: 0001-fix-RTF-ignores-consecutive-newlines.patch
>
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> Some RTF files encode consecutive linebreaks as simply consecutive \par commands. However,
org.apache.tika.parser.rtf.TextExtractor ignores the second \par.
> Solution is to replace at line 1158:
>         } else if (equals("par")) {
>             if (!ignored) {
>                 endParagraph(true);
>             }
>         }
> with:
>         } else if (equals("par")) {
>             if (!ignored) {
>                 lazyStartParagraph();
>                 endParagraph(true);
>             }
>         }



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

Mime
View raw message