Re: Other formats in pset like markdown, rst, mediawiki

From: Jan Michálek <godzilalalala(at)gmail(dot)com>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Other formats in pset like markdown, rst, mediawiki
Date: 2017-03-06 15:47:01
Message-ID: CAAYBy8a2sOCKerk8R95=+GYcJo-tKyOiP-cYpEZg8gHqPkH6QQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

2017-03-06 16:25 GMT+01:00 Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>:

>
>
> 2017-03-06 16:17 GMT+01:00 Jan Michálek <godzilalalala(at)gmail(dot)com>:
>
>>
>>
>> 2017-03-06 15:19 GMT+01:00 Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>:
>>
>>>
>>>
>>> 2017-03-06 0:26 GMT+01:00 Jan Michálek <godzilalalala(at)gmail(dot)com>:
>>>
>>>>
>>>>
>>>> 2017-03-05 14:02 GMT+01:00 Jan Michálek <godzilalalala(at)gmail(dot)com>:
>>>>
>>>>>
>>>>>
>>>>> 2017-03-05 13:39 GMT+01:00 Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>:
>>>>>
>>>>>>
>>>>>>
>>>>>> 2017-03-05 13:22 GMT+01:00 Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>:
>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> 2017-03-05 13:08 GMT+01:00 Jan Michálek <godzilalalala(at)gmail(dot)com>:
>>>>>>>
>>>>>>>> It is question if it is really new format, because formating is the
>>>>>>>> same as aligned/wrapped format, changed is only style of lines.
>>>>>>>>
>>>>>>>
>>>>>>> Please, don't do top posting https://en.wikipedia.org/wiki/
>>>>>>> Posting_style#Top-posting
>>>>>>>
>>>>>>>
>>>>>>>> 2017-03-05 12:36 GMT+01:00 Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>:
>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> 2017-03-05 11:40 GMT+01:00 Jan Michálek <godzilalalala(at)gmail(dot)com>:
>>>>>>>>>
>>>>>>>>>> I know, but, both new linestyles are created literally by cloning
>>>>>>>>>> ascii linestyle and few lines in print_aligned_text. Both works with
>>>>>>>>>> "aligned" and "wrapped" format. In rst is wrapped format useful, in my
>>>>>>>>>> opinion, in markdown i can`t find how I can get newline in record (maybe it
>>>>>>>>>> is not posiible in main markdown types). So it is why i add markdown and
>>>>>>>>>> rst as new linestyles. But it is not problem to change it in command to use
>>>>>>>>>> "\pset format", but i mean, that this is cleaner.
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Using a special linestyle for new format is possible probably. But
>>>>>>>>> new format should be switched with \pset format command.
>>>>>>>>>
>>>>>>>>
>>>> changed
>>>>
>>>
>>> quick test shows it is working.
>>>
>>> Just idea - can you specify aligning? right aligning for numbers, left
>>> for others?
>>>
>>
>> I used "aligned" format as it is and I don`t know, if I`m able to do this
>> with current solution based only on change linestyle internally.
>>
>
> you can try to test result in some markdown processors? I will not be
> surprised if these processor ignore aligning in input data.
>

I tested markdown only in retext and retext aligns columns set by -----:|
well.

>
> Refards
>
> Pavel
>
>
>
>>
>>> Regards
>>>
>>> Pavel
>>>
>>>
>>
>>
>> --
>> Jelen
>> Starší čeledín datovýho chlíva
>>
>
>

--
Jelen
Starší čeledín datovýho chlíva

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Arseny Sher 2017-03-06 16:20:16 [GSoC] Push-based query executor discussion
Previous Message Jan Michálek 2017-03-06 15:39:13 Re: Other formats in pset like markdown, rst, mediawiki