Re: printing table in asciidoc with psql

From: Emanuel Calvo <emanuel(dot)calvo(at)2ndquadrant(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: printing table in asciidoc with psql
Date: 2014-09-17 15:18:13
Message-ID: 5419A635.3070702@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


El 16/09/14 16:52, Szymon Guz escribió:
> Hi,
> I've been working a little bit on a patch for printing tables in
> asciidoc with psql.
>
> It's not finished yet, I'm not sure it there is any sense in
> supporting border types etc. The code is not cleared so far, but any
> remarks on the style not playing well with the normal postgres style
> of code are welcomed.
>
> The code just works. With extended and normal modes. With table
> columns made of funny characters, with alignment of data in table
> cells. I was trying to implement it similar to the html export
> function, however escaping of the strings was much easier, as the
> normal html-way substitution is not easy to implement in asciidoc.
>
> I'd like to ask you for any advices for this code.
>
> thanks,
> Szymon
>
>

Please add "asciidoc" in src/bin/psql/help.c[354]

354,96-103
fprintf(output, _(" format set output format
[unaligned, aligned, wrapped, html, latex, ..]\n"));

Tested the patch and worked fine.

--
--
Emanuel Calvo http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2014-09-17 15:19:36 Re: [Windows,PATCH] Use faster, higher precision timer API
Previous Message Greg Stark 2014-09-17 14:57:38 Re: Collations and Replication; Next Steps