mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
Add a latex-longtable output format to psql
latex longtable is more powerful than the 'tabular' output format 'latex' uses. Also add border=3 support to 'latex'.
This commit is contained in:
@ -2164,6 +2164,9 @@ _align2string(enum printFormat in)
|
||||
case PRINT_LATEX:
|
||||
return "latex";
|
||||
break;
|
||||
case PRINT_LATEX_LONGTABLE:
|
||||
return "latex-longtable";
|
||||
break;
|
||||
case PRINT_TROFF_MS:
|
||||
return "troff-ms";
|
||||
break;
|
||||
@ -2197,6 +2200,8 @@ do_pset(const char *param, const char *value, printQueryOpt *popt, bool quiet)
|
||||
popt->topt.format = PRINT_HTML;
|
||||
else if (pg_strncasecmp("latex", value, vallen) == 0)
|
||||
popt->topt.format = PRINT_LATEX;
|
||||
else if (pg_strncasecmp("latex-longtable", value, vallen) == 0)
|
||||
popt->topt.format = PRINT_LATEX_LONGTABLE;
|
||||
else if (pg_strncasecmp("troff-ms", value, vallen) == 0)
|
||||
popt->topt.format = PRINT_TROFF_MS;
|
||||
else
|
||||
|
Reference in New Issue
Block a user