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

Text.Pandoc.Builder.simpleTable always produces empty tables #70

Closed
jgm opened this issue Jun 10, 2011 · 1 comment
Closed

Text.Pandoc.Builder.simpleTable always produces empty tables #70

jgm opened this issue Jun 10, 2011 · 1 comment
Assignees

Comments

@jgm
Copy link
Owner

jgm commented Jun 10, 2011

Tables produced by simpleTable seem to render with all their cells empty.

What steps will reproduce the problem?

$ ghci
Prelude> :m +Text.Pandoc Text.Pandoc.Builder
Prelude Text.Pandoc Text.Pandoc.Builder> let headers = map (plain . text) ["foo", "bar"]
Prelude Text.Pandoc Text.Pandoc.Builder> let rows = map (map (plain . text)) [["1", "2"], ["3", "4"]]
Prelude Text.Pandoc Text.Pandoc.Builder> putStrLn $ writeMarkdown defaultWriterOptions $ doc $ simpleTable headers rows

What is the expected output? What do you see instead?

Expected:
foo bar


1 2
3 4

Actual:


What version of the product are you using? On what operating system?

ghc 7.0.3, Haskell Platform 2011, pandoc 1.8.1.1, pandoc-types 1.8.0.1, Linux

Please provide any additional information below.

I think this is because simpleTable passes an empty list of (alignment, cellwidth) pairs.

Google Code Info:
Issue #: 301
Author: sam.mojo...@googlemail.com
Created On: 2011-05-08T10:22:26.000Z
Closed On: 2011-05-11T22:04:00.000Z

@ghost ghost assigned jgm Jun 10, 2011
@jgm
Copy link
Owner Author

jgm commented Jun 10, 2011

Thanks for the bug report and patch. Patch applied, 1.8.0.2 released on HackageDB!

Google Code Info:
Author: fiddloso...@gmail.com
Created On: 2011-05-11T22:04:00.000Z

@jgm jgm closed this as completed Jun 10, 2011
jgm added a commit that referenced this issue Feb 27, 2017
Fix polyglossia/biblatex problem with xelatex
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