HAML and jEditable

One of the problems with jEditable and HAML is that HAML puts whitespace in the form automatically.  So my HAML script looks like this:

%td{ :class => 'edit_area', :id=>"#{k}_#{f}" }
  = format_table_value(f, v[f])

The problem with this in jEditable is that now once the user clicks on it, there is gobs of white space around the word.  To get rid of this you use HAML’s fancy no whitespace flag ‘<’.  This looks like:

%td{ :class => 'edit_area', :id=>"#{k}_#{f}" }<
  = format_table_value(f, v[f])

This is an example of how one simple character can really help improve the user experience :-)