postgres.git / summary / log / commit / refs
commit 74a82bafe434adbf80872ddd17f3e8c7a0eadc71
Author: Bruce Momjian <bruce@momjian.us>
Date: Fri Jan 18 13:30:31 2013 +0000
First released in: 9.3.0
psql latex fixes
Remove extra line at bottom of table for new 'latex' mode border=3.
Also update 'latex'-longtable 'tableattr' docs to say
'whitespace-separated' instead of 'space'.
doc/src/sgml/ref/psql-ref.sgml | 2 +-
src/bin/psql/print.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml
index 504a5164de9..4c99cd9951d 100644
--- a/doc/src/sgml/ref/psql-ref.sgml
+++ b/doc/src/sgml/ref/psql-ref.sgml
@@ -2163,7 +2163,7 @@ lo_import 152801
<para>
In <literal>latex-longtable</literal> format, this controls
the proportional width of each column containing a left-aligned
- data type. It is specified as a space-separated list of values,
+ data type. It is specified as a whitespace-separated list of values,
e.g. <literal>'0.2 0.2 0.6'</>. Unspecified output columns
use the last specified value.
</para>
diff --git a/src/bin/psql/print.c b/src/bin/psql/print.c
index 821058d4652..f7b47ca4fff 100644
--- a/src/bin/psql/print.c
+++ b/src/bin/psql/print.c
@@ -1681,7 +1681,7 @@ print_latex_text(const printTableContent *cont, FILE *fout)
{
printTableFooter *footers = footers_with_default(cont);
- if (opt_border >= 2)
+ if (opt_border == 2)
fputs("\\hline\n", fout);
fputs("\\end{tabular}\n\n\\noindent ", fout);
[parent: 6f7cddc7ae27]