Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiline Table Bug #1333

Closed
ShabbyX opened this issue Jun 12, 2014 · 0 comments
Closed

Multiline Table Bug #1333

ShabbyX opened this issue Jun 12, 2014 · 0 comments

Comments

@ShabbyX
Copy link
Contributor

ShabbyX commented Jun 12, 2014

Hi,

I'm using the multiline tables, because I use the width proportion feature. In the README (http://johnmacfarlane.net/pandoc/README.html), it says the following works:

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

which doesn't have a new line in the last line (actually that's a vague statement from the parsing point of view). Regardless, if I have a table like this:

----- ------------------------------ ------
  A              Table                Here
----- ------------------------------ ------

It is interpreted as a table without taking the proportions into account. That's alright, since adding a new line fixes that. This is not the bug I'm talking about.

The bug is that the parser gets confused when there is some text, and then another table of the same kind but with heading follows. This is an example:

----- ------------------------------ ------
  A              Table                Here

----- ------------------------------ ------

Some more text here.  This text gets interpreted as if it's part of the table, but in reality it is not.

--------------------------------------
Title          of       other   table
------  -------------- ------- -------
Some        Stuff        Here    in

This        other       table    .
--------------------------------------

What happens is the following. If in the first table, without heading, if I don't add the new line after the single row, the table is not detected as multiline table, since the width proportions don't take effect.

If there are at least 2 rows in the first table, there is no problem.

However, if there is a single row in the table, and there is a new line after it, the text after the table gets chopped up and put inside the table. This only happens if the text is followed by a table with heading!

This happens with pandoc 1.12.4.2. You can see it in Try pandoc! too.

@jgm jgm closed this as completed in 9da5d89 Jun 17, 2014
jgm added a commit that referenced this issue Jun 17, 2014
This allows blank lines at end of multiline headers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant