info.bliki.html.wikipedia.ConvertEmptyHTMLTag Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bliki-core Show documentation
Show all versions of bliki-core Show documentation
This is the core project.
The newest version!
package info.bliki.html.wikipedia;
import info.bliki.htmlcleaner.TagNode;
public abstract class ConvertEmptyHTMLTag extends AbstractHTMLTag {
boolean fconvertPlainText;
public ConvertEmptyHTMLTag() {
this(false);
}
public ConvertEmptyHTMLTag(boolean noNewLine) {
super(noNewLine);
}
@Override
public void emptyContent(AbstractHTMLToWiki html2WikiConverter, TagNode node, StringBuilder resultBuffer, boolean showWithoutTag) {
if (!showWithoutTag) {
open(node, resultBuffer);
resultBuffer.append(' ');
close(node, resultBuffer);
}
}
}