Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I change my code to avoid warning "should trim empty <div>" in Aptana Studio?

Tags:

I use 'class' when I need CSS function. For example, when I want to use clear: left; I make a class .clear {clear: left;} and use it in HTML file.

But there is always the warning

should trim empty

Luckily, it's not error so I don't care greatly. But it bother me sometimes.

Is there any solution sticking my habit?

like image 823
Joanne Gil Avatar asked Nov 12 '11 11:11

Joanne Gil


1 Answers

For Aptana Studio users:

Windows: go to Window > Preferences > Aptana Studio > Validation

(Mac: go to Aptana Studio > Preferences > Aptana Studio > Validation)

Select HTML Tidy Validator then some collapse-able options will appear. Select Elements, it will show a list of options. Now go to the bottom of the list and you'll see "Trim Empty Elements": change it from warning to ignore.

like image 186
Mirko Avatar answered Oct 05 '22 01:10

Mirko