You've already forked pgbackrest
							
							
				mirror of
				https://github.com/pgbackrest/pgbackrest.git
				synced 2025-10-30 23:37:45 +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:
		| @@ -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})) | ||||
|     { | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user