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

HTML beautifier inserts extra newline into <li>s ending with <code> #524

Closed
domenic opened this issue Sep 13, 2014 · 6 comments
Closed

HTML beautifier inserts extra newline into <li>s ending with <code> #524

domenic opened this issue Sep 13, 2014 · 6 comments

Comments

@domenic
Copy link
Contributor

domenic commented Sep 13, 2014

Trying to use this for some ES spec stuff... Running

<ol><li>a</li><li>b<code>c</code></li></ol>

through the HTML beautifier gives

<ol>
  <li>a</li>
  <li>b<code>c</code>
  </li>
</ol>

but I would expect

<ol>
  <li>a</li>
  <li>b<code>c</code></li>
</ol>
@domenic domenic changed the title HTML minifier inserts extra newline into <li>s ending with <code> HTML beautifier inserts extra newline into <li>s ending with <code> Sep 13, 2014
@domenic
Copy link
Contributor Author

domenic commented Sep 26, 2014

This appears to happen with all "unformatted" elements.

@bitwiseman
Copy link
Member

Verified bug.

@JeNeSuisPasDave
Copy link

I would love to see this fixed—or at implement an option to put a newline before </li> or keep it concatenated to the end of the inter HTML.

That newline is really annoying. :-(

@bitwiseman bitwiseman added this to the v1.5.5 milestone Dec 8, 2014
@bitwiseman
Copy link
Member

No option needed. This is a bug. It'll get fixed in the next release.

@domenic
Copy link
Contributor Author

domenic commented Mar 18, 2015

This now works with <code>, but for some reason is not working for elements I mark as unformatted myself.

@bitwiseman
Copy link
Member

Please open a new issue with examples.

@bitwiseman bitwiseman changed the title HTML beautifier inserts extra newline into <li>s ending with <code> HTML beautifier inserts extra newline into <li>s ending with <code> May 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants