Merge pull request #4805 from sleuthkit/no_html_newlines_5086

don't force newlines in HTML extraction.  This was causing problems w…
This commit is contained in:
Richard Cordovano 2019-05-17 10:19:08 -04:00 committed by GitHub
commit 77b7d157a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -198,6 +198,7 @@ final class HtmlTextExtractor implements TextExtractor {
renderer.setIncludeHyperlinkURLs(false);
renderer.setDecorateFontStyles(false);
renderer.setIncludeAlternateText(false);
renderer.setMaxLineLength(0); // don't force wrapping
return new StringReader(renderer.toString());
} catch (IOException ex) {
logger.log(Level.WARNING, "Error extracting HTML from content.", ex);