diff --git a/applications/examples/views/default/download.html b/applications/examples/views/default/download.html
index 90f023a2..e5da5a91 100644
--- a/applications/examples/views/default/download.html
+++ b/applications/examples/views/default/download.html
@@ -30,7 +30,7 @@
| Manual |
Change Log |
- Report a Bug |
+ Report a Bug |
diff --git a/gluon/sqlhtml.py b/gluon/sqlhtml.py
index 36a146b4..c95a3275 100644
--- a/gluon/sqlhtml.py
+++ b/gluon/sqlhtml.py
@@ -27,7 +27,7 @@ from gluon.html import FORM, INPUT, LABEL, OPTION, SELECT, COL, COLGROUP
from gluon.html import TABLE, THEAD, TBODY, TR, TD, TH, STYLE, SCRIPT
from gluon.html import URL, FIELDSET, P, DEFAULT_PASSWORD_DISPLAY
from pydal.base import DEFAULT
-from pydal.objects import Table, Row, Expression
+from pydal.objects import Table, Row, Expression, Field
from pydal.adapters.base import CALLABLETYPES
from pydal.helpers.methods import smart_query, bar_encode
from pydal.helpers.classes import Reference, SQLCustomType
diff --git a/scripts/cleanhtml.py b/scripts/cleanhtml.py
index e0df55b2..e4f71df0 100755
--- a/scripts/cleanhtml.py
+++ b/scripts/cleanhtml.py
@@ -57,8 +57,11 @@ def read_file(filename):
finally:
f.close()
-file = sys.argv[1]
-if file[-4:] == '.css':
- print cleancss(read_file(file))
-if file[-5:] == '.html':
- print cleanhtml(read_file(file))
+for file in sys.argv[1:]:
+ data = read_file(file)
+ open(file+'.bak2', 'w').write(data)
+ if file[-4:] == '.css':
+ data = cleancss(data)
+ if file[-5:] == '.html':
+ data = cleanhtml(data)
+ open(file, 'w').write(data)