View Single Post
Old 03-15-2014, 08:46 AM   #1
Bertrand
Zealot
Bertrand began at the beginning.
 
Posts: 124
Karma: 10
Join Date: Dec 2008
Location: France
Device: None
Beautify code : a few glitches ?

Nothing really serious, just some curious behaviors.

1. I create a table like this, before entering data, with empty cells :

Before :
Code:
<table>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
and click Beautify

After :
Code:
<table>

    <tr>
      <td/>
      <td/>
      <td/>
      <td/>
    </tr>

  </table>
See TD tags ? This is not valid HTML.
(No big deal, putting a temporary space inside empty cells solved the problem.)


2 . I have some paragraphs like this (copy/paste from an other app) :
Code:
<p>
hello
</p>
After Beautify, I was expecting something like :
Code:
<p>hello</p>
But I got only this :
Code:
  <p>
hello
</p>
Same thing for h1, etc.

3. Last thing :
If the closing tag for a HTML comment is at the very beginning of a line, the code after this closing tag loses the syntax highlighting. It seems that at least a space is needed at the beginning of the line to avoid this behavior.
Attached Thumbnails
Click image for larger version

Name:	2014-03-15 13 40 14.png
Views:	358
Size:	6.0 KB
ID:	120273  
Bertrand is offline   Reply With Quote