trim spaces and void blanks
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Sat, 8 Jan 2005 15:12:16 +0000 (15:12 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:27:18 +0000 (23:27 +0200)
commit2f2528a4db50970cddb803b25f9862c30f0864e4
treedf5ac3a7925a162744afe16828be4468c0f7db61
parente99f04c5f1cd6375954f66d082cfe87f51827354
trim spaces and void blanks

we now trim redoundant blanks from templates if they come (out of <pre>, <script>, <textarea> tags).

it's not 100% of the unnecessray blanks.  but it still trims a lot.
I assume we gain at least 10% on the size of the file.

moreover, with today's commits, we gain about 0.02s per page creation (according to the times I read on the top),
and a simple "static" page takes ~0.15s to load.  so it's a 5% speedup, with commits that _simplify_ the code...
what do you people want more ?

git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-249
ChangeLog
include/xorg/page.inc.php
include/xorg/smarty.plugins.inc.php