Commit fc7aa6ab by andreas.pelme

Fix JavaScripts that does not end with ; and typo in css.html


git-svn-id: https://django-compress.googlecode.com/svn/trunk@5 98d35234-f74b-0410-9e22-51d878bdf110
parent 75ea0c8e
...@@ -10,6 +10,7 @@ class JSMinCompressor: ...@@ -10,6 +10,7 @@ class JSMinCompressor:
for source_filename in js['source_filenames']: for source_filename in js['source_filenames']:
fd = open(media_root(source_filename), 'r') fd = open(media_root(source_filename), 'r')
source += fd.read() source += fd.read()
source += ';'
fd.close() fd.close()
compressed = jsmin(source) compressed = jsmin(source)
......
<link href="{{ url }}" rel="stylesheet" type="text/css" media="{{ css.media }}" /> <link href="{{ url }}" rel="stylesheet" type="text/css" media="{{ css.media }}" />
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment