Permalink
Browse files

Fixed a few minor things.

  • Loading branch information...
1 parent b185a0f commit 35eaaf3f4a12338e91ef4a879a5f82a38b341334 @jezdez jezdez committed Jan 30, 2012
@@ -35,14 +35,13 @@ def parse(self, parser):
def _compress(self, kind, mode, caller):
# This extension assumes that we won't force compression
forced = False
-
+
mode = mode or OUTPUT_FILE
original_content = caller()
context = {
'original_content': original_content
}
return self.render_compressed(context, kind, mode, forced=forced)
-
+
def get_original_content(self, context):
return context['original_content']
-
@@ -66,7 +66,7 @@ def get_loaders(self):
from django.template.loader import (
find_template_source as finder_func)
try:
- # Force django to calculate template_source_loaders from
+ # Force django to calculate template_source_loaders from
# TEMPLATE_LOADERS settings, by asking to find a dummy template
source, name = finder_func('test')
except TemplateDoesNotExist:
@@ -234,7 +234,7 @@ def test_css_multiple_files_disabled_compression(self):
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/two.css"></link>
{% endcompress %}"""
- out = '\n'.join([
+ out = ''.join([
'<link rel="stylesheet" type="text/css" href="/media/css/one.css" />',
'<link rel="stylesheet" type="text/css" href="/media/css/two.css" />'])
@@ -254,7 +254,7 @@ def test_css_multiple_files_mixed_precompile_disabled_compression(self):
<link rel="stylesheet" type="text/less" href="{{ MEDIA_URL }}css/url/test.css"/>
{% endcompress %}"""
- out = '\n'.join([
+ out = ''.join([
'<link rel="stylesheet" type="text/css" href="/media/css/one.css" />',
'<link rel="stylesheet" type="text/css" href="/media/css/two.css" />',
'<link rel="stylesheet" href="/media/CACHE/css/test.c4f8a285c249.css" type="text/css" />'])

0 comments on commit 35eaaf3

Please sign in to comment.