demydd / pandoc

Automatically exported from code.google.com/p/pandoc
0 stars 0 forks source link

incorrect html linebreaks #28

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
steps to reproduce the problem

1. debian sid, pandoc 0.44,
2. get a markdown file such as http://johnmacfarlane.net/pandoc/README
3. pandoc -S README.txt -o README.html 
4. less README.html

HTML linebreaks happen before the closing > tag, newlines beginning with
the same > tag.

Debian sid
pandoc 0.44
libghc6-pandoc-dev 0.44

Original issue reported on code.google.com by jan.reis...@gmail.com on 17 Oct 2007 at 2:28

Attachments:

GoogleCodeExporter commented 8 years ago
This is the way Haskell's Text.XHtml library writes (X)HTML.
Though it looks odd, it is valid HTML.  I believe that the
author of Text.XHtml wanted a way to indent structurally
without introducing any semantically significant whitespace,
and this is a way of doing that.

So, we don't regard this as a bug, and changing this behavior
would require changes upstream, in Text.XHtml.

If you don't like how it looks, you could always pipe the
output of pandoc through tidy.

Original comment by fiddloso...@gmail.com on 17 Oct 2007 at 2:43