HtmlChunk () { if (myName.isEmpty() && myFragmentType != FormatterDocFragmentType.RETURN) return HtmlChunk.empty(); final HtmlBuilder builder = new HtmlBuilder(); if (myFragmentType == FormatterDocFragmentType.RETURN) { return builder.appendRaw(myDescription).toFragment(); } builder.append(HtmlChunk.raw(myName).code()); if (!myDescription.isEmpty()) { builder.appendRaw(NDASH).appendRaw(myDescription); } return builder.wrapWith(HtmlChunk.p()); }