All Downloads are FREE. Search and download functionalities are using the official Maven repository.

info.bliki.wiki.tags.PTag Maven / Gradle / Ivy

The newest version!
package info.bliki.wiki.tags;

import info.bliki.wiki.filter.ITextConverter;
import info.bliki.wiki.model.Configuration;
import info.bliki.wiki.model.IWikiModel;

import java.io.IOException;
import java.util.List;

public class PTag extends HTMLBlockTag {
    public PTag() {
        super("p", "|address" + Configuration.SPECIAL_BLOCK_TAGS);
    }

    @Override
    public void renderHTML(ITextConverter converter, Appendable buf, IWikiModel model) throws IOException {
        // super.renderHTML(converter, buf, model);
        // use this to avoid empty 

tags in the html List children = this.getChildren(); if (children.size() != 0) { super.renderHTML(converter, buf, model); } } @Override public Object clone() { PTag pt = new PTag(); return pt; } }