AnWeber / atom-htmltidy

Atom Package to tidy up HTML with HTML Tidy 5
MIT License
2 stars 1 forks source link

wraps <pre> content #3

Closed garretwilson closed 8 years ago

garretwilson commented 8 years ago

I have XHTML5 content starting with:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html><html  lang="en-us"  xmlns="http://www.w3.org/1999/xhtml">
  <head>

Try as I might, I cannot stop atom-htmltidy from wrapping my <pre> tags. Here is my config:

{"input-xml" : true, "output-xml" : true, "indent" : true, "indent-with-tabs" : true, "wrap" : 0}

Here is sample input:

<figure>
  <pre> <kbd>munge-file --when now -v target-file.dat</kbd></pre>
</figure>

That gets changed to:

    <figure>
        <pre>

<kbd>munge-file --when now -v target-file.dat</kbd>
</pre>
    </figure>

Where are the newlines coming from?

AnWeber commented 8 years ago

the atom plugin is just a wrapper for Tidy-HTML5, Documentation.

Please visit this issue. If it doesn't match please open an issue here.

Thanks