private void render(Paragraph node, NodeRendererContext context, HtmlWriter html) { if (!(node.getParent() instanceof ParagraphItemContainer) || !((ParagraphItemContainer) node.getParent()).isParagraphWrappingDisabled(node, listOptions, context.getOptions())) { renderLooseParagraph(node, context, html); } else { renderTextBlockParagraphLines(node, context, html); } }
boolean isItemParagraph = ((ParagraphItemContainer) node.getParent()).isItemParagraph(node); if (isItemParagraph) { ListSpacing itemSpacing = context.getDocument().get(LIST_ITEM_SPACING); if (!((ParagraphItemContainer) node.getParent()).isParagraphWrappingDisabled(node, listOptions, context.getOptions())) { renderLooseItemParagraph(node, context, markdown); } else {
private void render(final Paragraph node, final DocxRendererContext docx) { if (node.getParent() instanceof EnumeratedReferenceBlock) { // we need to unwrap the paragraphs //final String text = new TextCollectingVisitor().collectAndGetText(node); //if (!text.isEmpty()) { docx.renderChildren(node); //} } else if (!(node.getParent() instanceof ParagraphItemContainer) || !((ParagraphItemContainer) node.getParent()).isItemParagraph(node)) { if (node.getParent() instanceof BlockQuote || node.getParent() instanceof AsideBlock) { // the parent handles our formatting docx.createP(); docx.renderChildren(node); } else { if (node.getFirstChildAnyNot(NonRenderingInline.class) != null) { docx.setBlockFormatProvider(new BlockFormatProviderBase<>(docx, docx.getDocxRendererOptions().LOOSE_PARAGRAPH_STYLE)); docx.createP(); docx.renderChildren(node); } } } else { // the parent handles our formatting if (node.getParent() instanceof FootnoteBlock) { // there is already an open paragraph, re-use it docx.renderChildren(node); } else { docx.createP(); docx.renderChildren(node); } } }
boolean isItemParagraph = ((ParagraphItemContainer) node.getParent()).isItemParagraph(node); if (isItemParagraph) { ListSpacing itemSpacing = context.getDocument().get(LIST_ITEM_SPACING); if (!((ParagraphItemContainer) node.getParent()).isParagraphWrappingDisabled(node, listOptions, context.getOptions())) { renderLooseItemParagraph(node, context, markdown); } else {
private void render(Paragraph node, NodeRendererContext context, HtmlWriter html) { if (!(node.getParent() instanceof ParagraphItemContainer) || !((ParagraphItemContainer) node.getParent()).isParagraphWrappingDisabled(node, listOptions, context.getOptions())) { renderLooseParagraph(node, context, html); } else { renderTextBlockParagraphLines(node, context, html); } }
void render(final Paragraph node, final NodeRendererContext context, final HtmlWriter html) { if (node.getFirstChildAnyNot(NonRenderingInline.class) != null) { if (!(node.getParent() instanceof ParagraphItemContainer) || !((ParagraphItemContainer) node.getParent()).isParagraphWrappingDisabled(node, listOptions, context.getOptions())) { renderLooseParagraph(node, context, html); } else { renderTextBlockParagraphLines(node, context, html, false); //context.getHtmlOptions().wrapTightItemParagraphInSpan); } } }
private void render(Paragraph node, NodeRendererContext context, HtmlWriter html) { if (!(node.getParent() instanceof ParagraphItemContainer) || !((ParagraphItemContainer) node.getParent()).isParagraphWrappingDisabled(node, listOptions, context.getOptions())) { renderLooseParagraph(node, context, html); } else { renderTextBlockParagraphLines(node, context, html); } }
void render(final Paragraph node, final NodeRendererContext context, final HtmlWriter html) { if (node.getFirstChildAnyNot(NonRenderingInline.class) != null) { if (!(node.getParent() instanceof ParagraphItemContainer) || !((ParagraphItemContainer) node.getParent()).isParagraphWrappingDisabled(node, listOptions, context.getOptions())) { renderLooseParagraph(node, context, html); } else { renderTextBlockParagraphLines(node, context, html, false); //context.getHtmlOptions().wrapTightItemParagraphInSpan); } } }