demydd / pandoc

Automatically exported from code.google.com/p/pandoc
0 stars 0 forks source link

Allow tables with no column headings #50

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Allow tables to have no column heading.

E.g.

------------ ---
California    42
New Mexico     5
------------ ---

How do we determine the alignment in these cases?
Possibly from the first line.  Or possibly we could
introduce a special notation:

.              .
------------ ---
California    42
New Mexico     5
------------ ---

Original issue reported on code.google.com by fiddloso...@gmail.com on 22 Jan 2008 at 3:40

GoogleCodeExporter commented 8 years ago
I think that going from the first line is good. Users would keep their table 
content
aligned anyway (at *least* for the first line), so the dots would be redundant 
almost
all of the time.

Also, putting in dots (or any other character) to indicate alignment would be
unnatural-looking. For example, you'd never see anyone do it in an email.

Another reason to not use the dots: having them there would add too much 
mostly-empty
space above the table.

Original comment by inky...@gmail.com on 22 Jul 2009 at 6:58

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Simple table with no heading:

-------     ------ ----------   -------
     12     12        12            12
    123     123       123          123
      1     1          1             1

Multiline tabel with no heading:

----------- ------- --------------- -------------------------
   First    row                12.0 Example of a row that
                                    spans multiple lines.

  Second    row                 5.0 Here's another one. Note
                                    the blank line between
                                    rows.
-------------------------------------------------------------

Original comment by fiddloso...@gmail.com on 5 Dec 2009 at 7:14

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r1652.

Original comment by fiddloso...@gmail.com on 5 Dec 2009 at 9:34

GoogleCodeExporter commented 8 years ago
Note:  the example of a simple table above won't work.  You need a line of 
dashes
at the end, as noted in README.

Original comment by fiddloso...@gmail.com on 5 Dec 2009 at 9:35