* --list-tables for RST?
@ 2018-12-19 10:03 Carsten Fuchs
[not found] ` <1957683e-aef2-4d1b-b4b3-b981a43819a9-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Carsten Fuchs @ 2018-12-19 10:03 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 2809 bytes --]
Dear Pandoc group,
https://github.com/jgm/pandoc/issues/4564 links to a PR that adds the
--list-tables feature, but it doesn't seem to be merged into the latest
release yet?
The problem is that Pandoc writes RST files like this:
=============================
================================================================================================================================================
Keyboard Input Action
=============================
================================================================================================================================================
Arrow keys ``←↑↓→`` Scroll the map into the direction of the arrow
.
``Z`` Toggle the pan feature: Pressing ``Z`` once is
like holding down ``RMB`` or ``Space`` all the time. Pressing ``Z`` anew
turns panning off again.
=============================
================================================================================================================================================
rather than the expected and correct
=============================
================================================================================================================================================
Keyboard Input Action
=============================
================================================================================================================================================
Arrow keys ``←↑↓→`` Scroll the map into the direction of the arrow
.
``Z`` Toggle the pan feature: Pressing ``Z`` once is
like holding down ``RMB`` or ``Space`` all the time. Pressing ``Z`` anew
turns panning off again.
=============================
================================================================================================================================================
That is, the separator lines get wrapped at the --columns width, whereas
the cell contents (correctly) does not. This can be worked-around by
setting e.g. --columns=174 or --wrap=none, but then the rest of the
document is affected as well.
Are there any other options for addressing this problem?
Best regards,
Carsten
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to pandoc-discuss@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/1957683e-aef2-4d1b-b4b3-b981a43819a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #1.2: Type: text/html, Size: 12110 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: --list-tables for RST?
[not found] ` <1957683e-aef2-4d1b-b4b3-b981a43819a9-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2018-12-19 16:16 ` John MacFarlane
[not found] ` <m2h8f9pk46.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: John MacFarlane @ 2018-12-19 16:16 UTC (permalink / raw)
To: Carsten Fuchs, pandoc-discuss
I believe the bug with table header wrapping has been
fixed already (see #5128 -- though this is not in a
released version -- you can compile from source or
grab a nightly).
The main question with the list tables PR is whether
to put it on an extension, and how to handle that exactly.
Carsten Fuchs <carsten.fuchs@cafu.de> writes:
> Dear Pandoc group,
>
> https://github.com/jgm/pandoc/issues/4564 links to a PR that adds the
> --list-tables feature, but it doesn't seem to be merged into the latest
> release yet?
>
> The problem is that Pandoc writes RST files like this:
>
> =============================
> ================================================================================================================================================
> Keyboard Input Action
> =============================
> ================================================================================================================================================
> Arrow keys ``←↑↓→`` Scroll the map into the direction of the arrow
> .
> ``Z`` Toggle the pan feature: Pressing ``Z`` once is
> like holding down ``RMB`` or ``Space`` all the time. Pressing ``Z`` anew
> turns panning off again.
> =============================
> ================================================================================================================================================
>
> rather than the expected and correct
>
> =============================
> ================================================================================================================================================
> Keyboard Input Action
> =============================
> ================================================================================================================================================
> Arrow keys ``←↑↓→`` Scroll the map into the direction of the arrow
> .
> ``Z`` Toggle the pan feature: Pressing ``Z`` once is
> like holding down ``RMB`` or ``Space`` all the time. Pressing ``Z`` anew
> turns panning off again.
> =============================
> ================================================================================================================================================
>
>
> That is, the separator lines get wrapped at the --columns width, whereas
> the cell contents (correctly) does not. This can be worked-around by
> setting e.g. --columns=174 or --wrap=none, but then the rest of the
> document is affected as well.
>
> Are there any other options for addressing this problem?
>
> Best regards,
> Carsten
>
> --
> You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe@googlegroups.com.
> To post to this group, send email to pandoc-discuss@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/1957683e-aef2-4d1b-b4b3-b981a43819a9%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to pandoc-discuss@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/m2h8f9pk46.fsf%40johnmacfarlane.net.
For more options, visit https://groups.google.com/d/optout.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: --list-tables for RST?
[not found] ` <m2h8f9pk46.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
@ 2018-12-22 17:29 ` Carsten Fuchs
0 siblings, 0 replies; 3+ messages in thread
From: Carsten Fuchs @ 2018-12-22 17:29 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
Hi John,
Am 2018-12-19 um 17:16 schrieb John MacFarlane:
>
> I believe the bug with table header wrapping has been
> fixed already (see #5128 -- though this is not in a
> released version -- you can compile from source or
> grab a nightly).
Thank you very much, the nightly works very well!
> The main question with the list tables PR is whether
> to put it on an extension, and how to handle that exactly.
Btw., I just realized that Sphinx cannot deal with one-column tables that are defined with ==== syntax, obviously due to the collision with the definition for headlines:
=======
doesn't
=======
work
=======
I have not yet tried it, but I guess that using the list syntax would help with such tables as well.
Best regards,
Carsten
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-12-22 17:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-19 10:03 --list-tables for RST? Carsten Fuchs
[not found] ` <1957683e-aef2-4d1b-b4b3-b981a43819a9-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2018-12-19 16:16 ` John MacFarlane
[not found] ` <m2h8f9pk46.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2018-12-22 17:29 ` Carsten Fuchs
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).