Closed schell closed 7 years ago
Actually it looks like the output of writeHtmlString
is fine, it produces the newlines that are expected. I've tracked the problem further down my pipeline, where I take that string and use it as the body
variable in a template that is being compiled with renderTemplate
.
I can't reproduce this. Can you send output of pandoc --version
, plus information about how you installed pandoc
(from source, from a binary package, etc.)?
And, can you reproduce this with command line pandoc, or only with the Haskell program? If you can reproduce it with the pandoc command, please send the exact command used.
+++ Schell Carl Scivally [Jan 28 17 12:32 ]:
Actually it looks like the output of writeHtmlString is fine, it produces the newlines that are expected. I've tracked the problem further down my pipeline, where I take that string and use it as the body variable in a template that is being compiled with renderTemplate.
Ah, okay. Well, then, the issue is that the template rendering respects indentation. Put the variable for the code flush with the left margin.
Wow! Magic! Thank you, I didn't think about that.
I'm going from markdown and literate haskell to html and it seems that all my code blocks end up misaligned due to some extra indentation. For example the following markdown
produces this output
which ends up looking like
I think the issue is in the writer, as when I inspect the read block, I see
I'm writing the document using
where