From b3702a3bfd85c33f155ea65c94f4ce30a90cbf09 Mon Sep 17 00:00:00 2001 From: Massimo DiPierro Date: Tue, 21 Feb 2012 14:04:01 -0600 Subject: [PATCH] issue 668, htmlmin.py, thanks kerncece --- VERSION | 2 +- gluon/contrib/minify/htmlmin.py | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 gluon/contrib/minify/htmlmin.py diff --git a/VERSION b/VERSION index 0a55cae4..811a53c6 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 1.99.4 (2012-02-21 00:06:19) stable +Version 1.99.4 (2012-02-21 14:03:59) stable diff --git a/gluon/contrib/minify/htmlmin.py b/gluon/contrib/minify/htmlmin.py new file mode 100644 index 00000000..fbb3896b --- /dev/null +++ b/gluon/contrib/minify/htmlmin.py @@ -0,0 +1,13 @@ +# coding: utf-8 + +import re + +def minify(response): + def _replace(match): + match = match.group() + # save whole
, |