Class HtmlTag
java.lang.Object
org.apache.maven.doxia.markup.HtmlTag
An HTML tag name together with the one property Doxia reads from it: whether a start tag may be
preceded by a line break. It replaces
javax.swing.text.html.HTML.Tag in the sink API,
which carries an HTML 4 table Doxia has outgrown.
The block values of the known tags are those the HtmlMarkup
constants report today, copied unchanged so that no generated site's whitespace moves. Several of
them are wrong for HTML5 — section, article and figure are not
treated as block, while menu and title are — and correcting them is a
separate change with its own before-and-after site comparison.
- Since:
- 2.2.0
-
Constructor Details
-
HtmlTag
Constructs a tag.- Parameters:
name- the tag name, not null.block- whether a start tag may be preceded by a line break.
-
-
Method Details
-
valueOf
-
getName
-
isBlock
public boolean isBlock()Returns whether a start tag may be preceded by a line break.- Returns:
- true if the tag is a block-level tag.
-
toString
-
equals
-
hashCode
-