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')
{

View File

@@ -170,7 +170,7 @@
</release-item>
<release-item>
<p>PDF rendering improvements. Check both <path>doc-path</path> and <path>bin-path</path> for logo. Allow PDF to be output to a location other than the <path>output</path> directory. Use PDF-specific version variable for more flexible formatting. Allow sections to be excluded from table of contents. More flexible replacements for titles and footers.</p>
<p>PDF rendering improvements. Check both <path>doc-path</path> and <path>bin-path</path> for logo. Allow PDF to be output to a location other than the <path>output</path> directory. Use PDF-specific version variable for more flexible formatting. Allow sections to be excluded from table of contents. More flexible replacements for titles and footers. Fill is now the default for table columns. Column width is specified as a percentage rather that using latex-specific notation.</p>
</release-item>
<release-item>