public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* getting pandoc to always use pipe_tables
@ 2018-03-22 18:13 Norbert Lange
       [not found] ` <a58b7f3a-bba4-42e9-98c5-26bb45c11f49-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Norbert Lange @ 2018-03-22 18:13 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1628 bytes --]


Hello,

I am also using pandoc as code-format, measns I will write really sloppy 
tables and expect pandoc to sort everything out.
For easier editing (and automatic reformating) I prefer pipe_tables.

The issue now arises when a pipe_table has more content than what would fit 
one one line,
pandoc will not use pipe_tables, but fall back to inline html.

is there any way to restrict pandoc to always use pipe_tables?

echo '||||
|-----|-----|-----|
something rather long | and has a windy descripton | I cant bring my self 
to format this manually
pandoc|is so great that it can fix everything|
bug|but it wont currently|' | pandoc -t 
markdown-simple_tables-multiline_tables-grid_tables+pipe_tables -

pandoc 2.1.3
Compiled with pandoc-types 1.17.4.2, texmath 0.10.1.1, skylighting 0.7.0.2
Default user data directory: /home/lano/.pandoc
Copyright (C) 2006-2018 John MacFarlane
Web:  http://pandoc.org
This is free software; see the source for copying conditions.
There is no warranty, not even for merchantability or fitness
for a particular purpose.

-- 
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/a58b7f3a-bba4-42e9-98c5-26bb45c11f49%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 2337 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: getting pandoc to always use pipe_tables
       [not found] ` <a58b7f3a-bba4-42e9-98c5-26bb45c11f49-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2018-03-22 19:27   ` Daniel Staal
       [not found]     ` <ccf0e8b4-5232-bde3-c8be-6d012624d4ff-Jdbf3xiKgS8@public.gmane.org>
  2018-03-22 21:39   ` John MacFarlane
  1 sibling, 1 reply; 4+ messages in thread
From: Daniel Staal @ 2018-03-22 19:27 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

On 3/22/18 2:13 PM, Norbert Lange wrote:
> I am also using pandoc as code-format, measns I will write really sloppy 
> tables and expect pandoc to sort everything out.
> For easier editing (and automatic reformating) I prefer pipe_tables.
> 
> The issue now arises when a pipe_table has more content than what would 
> fit one one line,
> pandoc will not use pipe_tables, but fall back to inline html.

I've found that adding `--wrap=none` or `--wrap=preserve` (instead of 
the default 'auto') helps some with this, but I haven't been able to get 
it 100% yet.  (Though it tends to go to grid tables instead of HTML when 
it decides to change things.)

Daniel T. Staal

---------------------------------------------------------------
This email copyright the author.  Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes.  This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---------------------------------------------------------------

-- 
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/ccf0e8b4-5232-bde3-c8be-6d012624d4ff%40usa.net.
For more options, visit https://groups.google.com/d/optout.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: getting pandoc to always use pipe_tables
       [not found] ` <a58b7f3a-bba4-42e9-98c5-26bb45c11f49-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  2018-03-22 19:27   ` Daniel Staal
@ 2018-03-22 21:39   ` John MacFarlane
  1 sibling, 0 replies; 4+ messages in thread
From: John MacFarlane @ 2018-03-22 21:39 UTC (permalink / raw)
  To: Norbert Lange, pandoc-discuss


If you add `-raw_html` then it will give you a pipe table.
Of course, this might not work for you if you also have
raw HTML.

Maybe this should be revisited, though, since we now
have a way to indicate relative column widths in a pipe
table with long cells.  You may want to add an issue on
the github tracker requesting that  we no longer fall
back to HTML tables in this case.

Norbert Lange <nolange79-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> Hello,
>
> I am also using pandoc as code-format, measns I will write really sloppy 
> tables and expect pandoc to sort everything out.
> For easier editing (and automatic reformating) I prefer pipe_tables.
>
> The issue now arises when a pipe_table has more content than what would fit 
> one one line,
> pandoc will not use pipe_tables, but fall back to inline html.
>
> is there any way to restrict pandoc to always use pipe_tables?
>
> echo '||||
> |-----|-----|-----|
> something rather long | and has a windy descripton | I cant bring my self 
> to format this manually
> pandoc|is so great that it can fix everything|
> bug|but it wont currently|' | pandoc -t 
> markdown-simple_tables-multiline_tables-grid_tables+pipe_tables -
>
> pandoc 2.1.3
> Compiled with pandoc-types 1.17.4.2, texmath 0.10.1.1, skylighting 0.7.0.2
> Default user data directory: /home/lano/.pandoc
> Copyright (C) 2006-2018 John MacFarlane
> Web:  http://pandoc.org
> This is free software; see the source for copying conditions.
> There is no warranty, not even for merchantability or fitness
> for a particular purpose.
>
> -- 
> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/a58b7f3a-bba4-42e9-98c5-26bb45c11f49%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: getting pandoc to always use pipe_tables
       [not found]     ` <ccf0e8b4-5232-bde3-c8be-6d012624d4ff-Jdbf3xiKgS8@public.gmane.org>
@ 2018-03-26 13:26       ` Norbert Lange
  0 siblings, 0 replies; 4+ messages in thread
From: Norbert Lange @ 2018-03-26 13:26 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1980 bytes --]

I use '--wrap=preserve' and it does not make a difference, I just removed 
anything but the essential for the example.

Am Donnerstag, 22. März 2018 20:27:22 UTC+1 schrieb Daniel Staal:
>
> On 3/22/18 2:13 PM, Norbert Lange wrote: 
> > I am also using pandoc as code-format, measns I will write really sloppy 
> > tables and expect pandoc to sort everything out. 
> > For easier editing (and automatic reformating) I prefer pipe_tables. 
> > 
> > The issue now arises when a pipe_table has more content than what would 
> > fit one one line, 
> > pandoc will not use pipe_tables, but fall back to inline html. 
>
> I've found that adding `--wrap=none` or `--wrap=preserve` (instead of 
> the default 'auto') helps some with this, but I haven't been able to get 
> it 100% yet.  (Though it tends to go to grid tables instead of HTML when 
> it decides to change things.) 
>
> Daniel T. Staal 
>
> --------------------------------------------------------------- 
> This email copyright the author.  Unless otherwise noted, you 
> are expressly allowed to retransmit, quote, or otherwise use 
> the contents for non-commercial purposes.  This copyright will 
> expire 5 years after the author's death, or in 30 years, 
> whichever is longer, unless such a period is in excess of 
> local copyright law. 
> --------------------------------------------------------------- 
>

-- 
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/6e5d0bb0-d7fa-48bb-8ea7-28356628b2bc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 2619 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-03-26 13:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-22 18:13 getting pandoc to always use pipe_tables Norbert Lange
     [not found] ` <a58b7f3a-bba4-42e9-98c5-26bb45c11f49-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2018-03-22 19:27   ` Daniel Staal
     [not found]     ` <ccf0e8b4-5232-bde3-c8be-6d012624d4ff-Jdbf3xiKgS8@public.gmane.org>
2018-03-26 13:26       ` Norbert Lange
2018-03-22 21:39   ` John MacFarlane

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).