1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-14 10:13:05 +02:00

Add new HTML tags and strExtra to DocHtmlElement.

Add HTML tags for table elements.

The strExtra parameter allows adhoc tags to be added to an element for features that can't be implemented with CSS, e.g. colspan.
This commit is contained in:
David Steele 2018-11-11 16:34:15 -05:00
parent 5e3b7cbe6e
commit 3cd43fd60c
3 changed files with 19 additions and 1 deletions

View File

@ -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}))
{

View File

@ -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

View File

@ -128,6 +128,14 @@
</release-development-list>
</release-core-list>
<release-doc-list>
<release-development-list>
<release-item>
<p>Add new HTML tags and <code>strExtra</code> to <code>DocHtmlElement</code>.</p>
</release-item>
</release-development-list>
</release-doc-list>
<release-test-list>
<release-development-list>
<release-item>