Closed
Description
When using HTML, no extra whitespace (indentation) is added. For example:
Nokogiri::XML('<pre><code>moo</code></pre>').to_html
# => "<pre><code>moo</code></pre>\n"
However, with XHTML (and XML), the original line is split in three lines (pre, code, and /pre) and the middle line is erroneously indented, like this:
Nokogiri::XML('<pre><code>moo</code></pre>').to_xhtml
# => "<pre>\n <code>moo</code>\n</pre>\n"
Metadata
Metadata
Assignees
Labels
No labels