John Muccigrosso
2015-12-01 16:40:38 UTC
Just saw that the latest version adds in column widths for pipe tables. Any
way to turn these off? They're killing my css formatting.
I assume I'm getting bitten by this: Pipe tables with long lines now get
relative cell widths
<https://github.com/jgm/pandoc/commit/eb8aee477db045a7449bc752975528263964b8ce>,
but if so, that seems odd to me because some of the tables being affected
have short outputted lines, even though there are links in them which make
the markdown lines long.
For example, from my CV, this table gets the widths inserted:
|aa|bb|
|:--|--:|
Professor of Classics|[Drew University](http://www.drew.edu/)|
|<***@drew.edu>|[214a Brothers College](http:
//www.drew.edu/map/?building=brothers&Perspective=Y#building=brothers)|
|<http://www.users.drew.edu/jmuccigr/>| Madison, NJ 07940 |
|[VIAF](http://viaf.org/viaf/309849093/),
[ORCID](http://orcid.org/0000-0002-9877-1043),
[Academia.edu](http://drew.academia.edu/JohnMuccigrosso)|+1.973.408.3029|
so the html is this:
<table style="width:11%;">
<colgroup>
<col width="5%"></col>
<col width="5%"></col>
</colgroup>
<thead>
<tr class="header">
<th align="left">aa</th>
<th align="right">bb</th>
</tr>
</thead>
<tbody>
Note how narrow the cells are, too. They're so narrow that the text in the
second cell on each line wraps.
In contrast, the columns in this table are left alone, even though they
have more text than the other one:
|date|item|
|:--|:--|
2006â2008 | Chair, Committee on Academic Policy and Curriculum
2004â2005 | Mellon Foreign-Language Grant steering committee
2000â2006 | College Space Committee (chair from 2004)
2002â2006 | University Space Committee
2004â2005 | Co-Chair, Foreign-Language Council
2002 | Student Life Advisory Board
2000â2001 | University Technology Committee
I can in fact force the wrapping by adding more text to one of the cells,
presumably so that it meets the minimum width to get the column width set.
On the other hand, if I remove the links from the first table above, the
column-width formatting doesn't get applied, which suggests to me that
pandoc is (mistakenly) taking non-printing text into account when deciding
whether to add column widths. So that would be a bug, I think.
However, I really don't want any widths applied at all, if possible.
way to turn these off? They're killing my css formatting.
I assume I'm getting bitten by this: Pipe tables with long lines now get
relative cell widths
<https://github.com/jgm/pandoc/commit/eb8aee477db045a7449bc752975528263964b8ce>,
but if so, that seems odd to me because some of the tables being affected
have short outputted lines, even though there are links in them which make
the markdown lines long.
For example, from my CV, this table gets the widths inserted:
|aa|bb|
|:--|--:|
Professor of Classics|[Drew University](http://www.drew.edu/)|
|<***@drew.edu>|[214a Brothers College](http:
//www.drew.edu/map/?building=brothers&Perspective=Y#building=brothers)|
|<http://www.users.drew.edu/jmuccigr/>| Madison, NJ 07940 |
|[VIAF](http://viaf.org/viaf/309849093/),
[ORCID](http://orcid.org/0000-0002-9877-1043),
[Academia.edu](http://drew.academia.edu/JohnMuccigrosso)|+1.973.408.3029|
so the html is this:
<table style="width:11%;">
<colgroup>
<col width="5%"></col>
<col width="5%"></col>
</colgroup>
<thead>
<tr class="header">
<th align="left">aa</th>
<th align="right">bb</th>
</tr>
</thead>
<tbody>
Note how narrow the cells are, too. They're so narrow that the text in the
second cell on each line wraps.
In contrast, the columns in this table are left alone, even though they
have more text than the other one:
|date|item|
|:--|:--|
2006â2008 | Chair, Committee on Academic Policy and Curriculum
2004â2005 | Mellon Foreign-Language Grant steering committee
2000â2006 | College Space Committee (chair from 2004)
2002â2006 | University Space Committee
2004â2005 | Co-Chair, Foreign-Language Council
2002 | Student Life Advisory Board
2000â2001 | University Technology Committee
I can in fact force the wrapping by adding more text to one of the cells,
presumably so that it meets the minimum width to get the column width set.
On the other hand, if I remove the links from the first table above, the
column-width formatting doesn't get applied, which suggests to me that
pandoc is (mistakenly) taking non-printing text into account when deciding
whether to add column widths. So that would be a bug, I think.
However, I really don't want any widths applied at all, if possible.
--
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+***@googlegroups.com.
To post to this group, send email to pandoc-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/9fa3373f-af85-4c97-9cae-8f8cb00fa958%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+***@googlegroups.com.
To post to this group, send email to pandoc-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/9fa3373f-af85-4c97-9cae-8f8cb00fa958%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.