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

Missing blank line in single line multiline table #224

Closed
Dris101 opened this issue Aug 24, 2015 · 1 comment
Closed

Missing blank line in single line multiline table #224

Dris101 opened this issue Aug 24, 2015 · 1 comment
Assignees
Labels

Comments

@Dris101
Copy link

Dris101 commented Aug 24, 2015

As per the pandoc docs, a single line multi-table should have a blank line before the row of dashes that ends the table, otherwise the table may be interpreted as a simple table.
(see the docs for the multiline_tables extension)

@Dris101 Dris101 changed the title MIssing blank line in single line multiline table Missing blank line in single line multiline table Aug 24, 2015
@daroczig
Copy link
Member

Thanks for reporting this, much appreciated. A quick addition: this only happens if we have a one-liner multiline table without a header, e.g.:

> pander(unname(data.frame(a = 'lorem ipsum', b = 'foobar')), style = 'multiline', split.cells = 5)

----- ------
lorem foobar
ipsum       
----- ------

versus

> pander(unname(data.frame(a = c('lorem', 'ipsum'), b = 'foobar')), style = 'simple', split.cells = 5)

----- ------
lorem foobar
ipsum foobar
----- ------

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants