We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If paragraph ends on div tag then newline is missing:
<p>Paragraph 1</p> <div>Paragraph 2</div>
Expected:
Paragraph 1 Paragraph 2
Actual:
Similar case, but possibly another problem:
<div>Paragraph 1</div> <div> Text <div>Paragraph 2</div> </div>
Paragraph 1 Text Paragraph 2
Options used:
MutableDataSet options = new MutableDataSet(); options.set(FlexmarkHtmlParser.OUTPUT_ATTRIBUTES_ID, false); options.set(FlexmarkHtmlParser.THEMATIC_BREAK, "-------------------"); options.set(FlexmarkHtmlParser.SETEXT_HEADINGS, false); options.set(FlexmarkHtmlParser.BR_AS_EXTRA_BLANK_LINES, false); options.set(FlexmarkHtmlParser.BR_AS_PARA_BREAKS, false); options.set(FlexmarkHtmlParser.DIV_AS_PARAGRAPH, true); options.set(TableFormatOptions.FORMAT_TABLE_CAPTION, TableCaptionHandling.REMOVE);
The text was updated successfully, but these errors were encountered:
@dmitrymurashenkov, thank you for these cases. I will add the fix and test cases for these.
Sorry, something went wrong.
@dmitrymurashenkov, this is a bug of not honouring DIV_AS_PARAGRAPH in all cases.
I will make a release shortly with the fix.
Paragraph 1 Paragraph 2 . <p>Paragraph 1</p> <div>Paragraph 2</div>
DIV_AS_PARAGRAPH true
Paragraph 1 Text Paragraph 2 . <div>Paragraph 1</div> <div> Text <div>Paragraph 2</div> </div>
Fix for this is available. Repo updated, maven updated but may take a while to show up in maven central.
No branches or pull requests
If paragraph ends on div tag then newline is missing:
Expected:
Actual:
Similar case, but possibly another problem:
Expected:
Actual:
Options used:
The text was updated successfully, but these errors were encountered: