String text = new Source(html).getRenderer().setMaxLineLength(Integer.MAX_VALUE).toString().trim();
Jericho attempts to append 2 GB of dash ("-") characters to represent the table header row.
Unfortunately, setting MaxLineLength to smaller value isn't an option for us, as we need to not have a newline character unless the underlying html specifically calls for it (
<br/>, <p>, etc.
).
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The following code produces a
whenever the html contains an hr tag:
Jericho attempts to append 2 GB of dash ("-") characters to represent the table header row.
Unfortunately, setting MaxLineLength to smaller value isn't an option for us, as we need to not have a newline character unless the underlying html specifically calls for it (
).
Thanks.
Hi tinclon,
This issue has been addressed in version 3.3 with the Renderer.setHRLineLength method.
Until version 3.3 is officially released, the development version is available here:
http://jericho.htmlparser.net/temp/jericho-html-3.3-dev.zip
Cheers
Martin