8000 Multiline Table Bug · Issue #1333 · jgm/pandoc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Multiline Table Bug #1333
Closed
Closed
@ShabbyX

Description

@ShabbyX

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0