Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Formatting of inline HTML elements eats whitespace! #3

Closed
centi opened this Issue Nov 26, 2012 · 0 comments

Comments

Projects
None yet
2 participants

centi commented Nov 26, 2012

When I print some HTML markup with option unformatted : [] (to force formatting of all elements), some whitespace which should be untouched is removed.

html.prettyPrint("<h1><strong>Lorem</strong> ipsum</h1>", {unformatted:[]})

The output is:

<h1>
    <strong>Lorem</strong>ipsum</h1>

Besides the weird formatting, the main problem is the removed space before word "ipsum". Such whitespace must not be ever removed!

@maxogden maxogden closed this in 61f7fad Nov 27, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment