1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-10-30 23:37:45 +02:00

PDF rendering improvements.

* Fill is now the default for table columns.
* Column width is specified as a percentage rather that using latex-specific notation.
This commit is contained in:
David Steele
2018-02-22 09:31:53 -05:00
parent d4418e7764
commit 2485fabbad
2 changed files with 4 additions and 3 deletions

View File

@@ -225,7 +225,8 @@ sub sectionProcess
my $oHeader = $oChild->nodeGet('table-header');
my @oyColumn = $oHeader->nodeList('table-column');
my $strWidth = '{' . ($oHeader->paramTest('width') ? $oHeader->paramGet('width') : '\textwidth') . '}';
my $strWidth =
'{' . ($oHeader->paramTest('width') ? ($oHeader->paramGet('width') / 100) . '\textwidth' : '\textwidth') . '}';
# Build the table header
$strLatex .= "\\vspace{1em}\\newline\n";
@@ -237,7 +238,7 @@ sub sectionProcess
my $strAlignCode;
my $strAlign = $oColumn->paramGet("align", false);
if ($oColumn->paramTest('fill', 'y'))
if ($oColumn->paramGet('fill', false, 'y') eq 'y')
{
if (!defined($strAlign) || $strAlign eq 'left')
{