Re: printing table in asciidoc with psql

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
Cc: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, Szymon Guz <mabewlun(at)gmail(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: printing table in asciidoc with psql
Date: 2015-03-22 01:09:44
Message-ID: 20150322010944.GA10795@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, Mar 21, 2015 at 09:20:03PM +0900, Michael Paquier wrote:
> This does not work:
> =# create table "5 2.2+^.^" ();
> CREATE TABLE
> =# \pset format asciidoc
> Output format is asciidoc.
> =# \d
>
> .List of relations
> [options="header",cols="<l,<l,<l,<l",frame="none"]
> |====
> ^l|Schema ^l|Name ^l|Type ^l|Owner
> |public|5 2.2+^.^|table|ioltas
> |====
>
> ....
> (1 row)
> ....
>
> I think that we should really put additional spaces on the left side
> of the column separators "|". For example, this line:
> |public|5 2.2+^.^|table|ioltas
> should become that:
> |public |5 2.2+^.^ |table |ioltas
> And there is no problem.

I have updated the attached patch to do as you suggested. Please also
test the \x output. Thanks.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ Everyone has their own god. +

Attachment Content-Type Size
asciidoc.diff text/x-diff 19.7 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2015-03-22 01:35:02 Re: PATCH: numeric timestamp in log_line_prefix
Previous Message Tom Lane 2015-03-22 01:02:54 Display of multi-target-table Modify plan nodes in EXPLAIN