List of usage examples for com.lowagie.text ElementTags NEWLINE
String NEWLINE
To view the source code for com.lowagie.text ElementTags NEWLINE.
Click Source Link
From source file:org.apache.maven.doxia.module.itext.ITextSink.java
License:Apache License
/** {@inheritDoc} */ public void paragraph() { // Special case if ((actionContext.getCurrentAction() == SinkActionContext.LIST_ITEM) || (actionContext.getCurrentAction() == SinkActionContext.NUMBERED_LIST_ITEM) || (actionContext.getCurrentAction() == SinkActionContext.DEFINITION)) { return;/*from w ww .ja va 2s . c om*/ } writeStartElement(ElementTags.PARAGRAPH); writeStartElement(ElementTags.NEWLINE); writeEndElement(); actionContext.setAction(SinkActionContext.PARAGRAPH); }
From source file:org.apache.maven.doxia.module.itext.ITextSink.java
License:Apache License
/** {@inheritDoc} */ public void lineBreak() { // Special case for the header if ((actionContext.getCurrentAction() == SinkActionContext.AUTHOR) || (actionContext.getCurrentAction() == SinkActionContext.DATE) || (actionContext.getCurrentAction() == SinkActionContext.TITLE)) { return;/*from w w w .j a va 2s . co m*/ } writeStartElement(ElementTags.NEWLINE); writeEndElement(); }