psql latex fixes
authorBruce Momjian <bruce@momjian.us>
Fri, 18 Jan 2013 13:30:31 +0000 (08:30 -0500)
committerBruce Momjian <bruce@momjian.us>
Fri, 18 Jan 2013 13:30:31 +0000 (08:30 -0500)
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
src/bin/psql/print.c

index 504a5164de9dc0c04ddf02cbc7a7e46da2d232e7..4c99cd9951dd330fa0912d1a1d9998ebf49cefbf 100644 (file)
@@ -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>
index 821058d4652ff8c04df513fceac3528724aea52f..f7b47ca4fff9c23c42b5aa0d97a314eabc409613 100644 (file)
@@ -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);