diff --git a/doc/lib/BackRestDoc/Html/DocHtmlBuilder.pm b/doc/lib/BackRestDoc/Html/DocHtmlBuilder.pm index 562ccc507..790df8772 100644 --- a/doc/lib/BackRestDoc/Html/DocHtmlBuilder.pm +++ b/doc/lib/BackRestDoc/Html/DocHtmlBuilder.pm @@ -127,7 +127,8 @@ sub htmlRender $self->indent($iDepth) . "<$oElement->{strType}" . (defined($oElement->{strClass}) ? " class=\"$oElement->{strClass}\"": '') . (defined($oElement->{strRef}) ? " href=\"$oElement->{strRef}\"": '') . - (defined($oElement->{strId}) ? " id=\"$oElement->{strId}\"": '') . '>'; + (defined($oElement->{strId}) ? " id=\"$oElement->{strId}\"": '') . + (defined($oElement->{strExtra}) ? " $oElement->{strExtra}": '') . '>'; if (defined($oElement->{strContent})) { diff --git a/doc/lib/BackRestDoc/Html/DocHtmlElement.pm b/doc/lib/BackRestDoc/Html/DocHtmlElement.pm index bd362cf1e..e484b0c8c 100644 --- a/doc/lib/BackRestDoc/Html/DocHtmlElement.pm +++ b/doc/lib/BackRestDoc/Html/DocHtmlElement.pm @@ -26,6 +26,14 @@ use constant HTML_DIV => 'div'; push @EXPORT, qw(HTML_DIV); use constant HTML_SPAN => 'span'; push @EXPORT, qw(HTML_SPAN); +use constant HTML_TABLE => 'table'; + push @EXPORT, qw(HTML_TABLE); +use constant HTML_TD => 'td'; + push @EXPORT, qw(HTML_TD); +use constant HTML_TH => 'th'; + push @EXPORT, qw(HTML_TH); +use constant HTML_TR => 'tr'; + push @EXPORT, qw(HTML_TR); use constant HTML_UL => 'ul'; push @EXPORT, qw(HTML_UL); use constant HTML_LI => 'li'; @@ -63,6 +71,7 @@ sub new $self->{strContent} = $$oParam{strContent}; $self->{strId} = $$oParam{strId}; $self->{strRef} = $$oParam{strRef}; + $self->{strExtra} = $$oParam{strExtra}; $self->{bPre} = $$oParam{bPre}; # Return from function and log return values if any diff --git a/doc/xml/release.xml b/doc/xml/release.xml index 05cb2c1f7..438adab4e 100644 --- a/doc/xml/release.xml +++ b/doc/xml/release.xml @@ -128,6 +128,14 @@ + + + + Add new HTML tags and strExtra to DocHtmlElement. + + + +
Add new HTML tags and strExtra to DocHtmlElement.
strExtra
DocHtmlElement