This one's a Velocity specific issue, and unfortunately as of Velocity 1.3.1 there is no white space gobbling configuration available (other than the well known "ChuckEverythingOnOneBigLine" methodology).
You might find it useful to browse the Velocity User list archives, or subscribe, as there is active discussions on just this topic very recently. I believe it will be eventually introduced (possibly in the very near term) once a 'neater' way of enabling/disabling this option is found before the syntax is modified and the algorithm added to the code. Anyway, you're not the only one in this boat, I count myself as a crew member! :) cheers, Paul Smith > -----Original Message----- > From: Edmund Urbani [mailto:emu@;emu.no-ip.org] > Sent: Wednesday, 30 October 2002 2:35 AM > To: [EMAIL PROTECTED] > Subject: how to get rid of whitespaces in generated html? > > > > Hi! > > I use Turbine+Velocity in the project I'm currently working > on. I try to > keep the templates readable (indention, some empty lines...) and as a > result I get html-pages consisting of up to 25% unnecessary > whitespaces. > That did not bother me much, as long as those pages were fairly small. > But it is becoming an issue now, because some of the pages > generated by > the production server get as big as 230KB. > > Is there a way to configure turbine/velocity to eliminate those > whitespaces? The html generated by the production environment > does not > need to be human-readable at all. Any ideas? > > Edmund > > > -- > To unsubscribe, e-mail: <mailto:turbine-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:turbine-user-help@;jakarta.apache.org> -- To unsubscribe, e-mail: <mailto:turbine-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:turbine-user-help@;jakarta.apache.org>
