Stripping whitespace in generated output

When viewing the generated HTML, I notice a lot of whitespace. Is
there a simple way to hook into the output just before it is sent to
the client so I can replace multiple spaces with one space?

Or, if possible, any way to teach erb to only output one space for
every whitespace region?

–Michael

On Oct 9, 2007, at 3:40 , Michael G. wrote:

Or, if possible, any way to teach erb to only output one space for
every whitespace region?

Use <%- and -%> (note the additional - characters) instead of <% and
%> to eat up whitespace.

Michael G.
grzm seespotcode net