[
https://issues.apache.org/jira/browse/TIKA-1069?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14361344#comment-14361344
]
Tyler Palsulich commented on TIKA-1069:
---------------------------------------
Reproduced this with 1.8-SNAPSHOT. If a text file has {{writeLimit - 1}}
characters, it's fine. But, if it has exactly {{writeLimit}} characters, an
exception is thrown which says the document contained more than {{writeLimit}}
characters, which isn't true. Thoughts?
> Tika TXTParser requires (writeLimit + 1) because of paragrah wrapping
> ---------------------------------------------------------------------
>
> Key: TIKA-1069
> URL: https://issues.apache.org/jira/browse/TIKA-1069
> Project: Tika
> Issue Type: Bug
> Components: parser
> Affects Versions: 1.2
> Reporter: Horia Chiorean
>
> When using a configured {{writeLimit}} with {{BodyContentHandler}}, together
> with the {{TXTParser}}, the latter always throws a
> {{WriteLimitReachedException}} from the {{ignorableWhitespace}} method, when
> parsing a text which has the {{writeLimit}} length.
> From what I can tell so far, this is caused by the fact that the
> {{TXTParser}} wraps the text in a "p" element.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)