Community
Participate
Working Groups
Build Identifier: 20110615-0604 Formatting an HTML page results in additional, unwanted spaces because the formatter introduces a newline after the </a> tag. The tag is specified as inline in the formatter settings. The same thing does not happen, for example, with the </i> tag, which is also listed as inline. example: PRE-format: Please click <a href="hi.html">this link</a>. POST-format: Please click <a href="hi.html">this link</a> . Reproducible: Always Steps to Reproduce: 1. Create an HTML file and open with the HTML editor. 2. Create a pair of <a> tags that should NOT have a space after the closing tag. 3. Run Source > Format
This particular example works as design since a newLine should be add if the parent Node is the DOCUMENT_NODE. On the other hand if you have the following: <html> <a>test</a>. </html> the format will honor the inline element, and do not add an extra new line. I think that this bug should be marked as resolved.
Resolving due to my last comment.