public void tableRow()

in doxia-core/src/main/java/org/apache/maven/doxia/sink/impl/Xhtml5BaseSink.java [1326:1355]


    public void tableRow(SinkEventAttributes attributes) {
        MutableAttributeSet attrs = SinkUtils.filterAttributes(attributes, SinkUtils.SINK_TR_ATTRIBUTES);

        if (attrs == null) {
            attrs = new SinkEventAttributeSet();
        }

        String rowClass = evenTableRow ? "a" : "b";
        boolean hidden = false;
        if (attrs.isDefined(SinkEventAttributes.CLASS.toString())) {
            String givenRowClass = (String) attrs.getAttribute(SinkEventAttributes.CLASS.toString());
            if (HIDDEN_CLASS_PATTERN.matcher(givenRowClass).matches()) {
                hidden = true;
            }
            rowClass += " " + givenRowClass;
        }

        attrs.addAttribute(SinkEventAttributes.CLASS, rowClass);

        writeStartTag(HtmlMarkup.TR, attrs);

        if (!hidden) {
            evenTableRow = !evenTableRow;
        }

        if (!this.cellCountStack.isEmpty()) {
            this.cellCountStack.removeLast();
            this.cellCountStack.addLast(0);
        }
    }