Ticket #8710: 8710-1.diff

File 8710-1.diff, 2.4 KB (added by gkelly, 16 years ago)

Fixes some whitespace issues.

  • django/utils/text.py

     
    207207
    208208    >>> list(smart_split(r'This is "a person\'s" test.'))
    209209    [u'This', u'is', u'"a person\\\'s"', u'test.']
    210         >>> list(smart_split(r"Another 'person\'s' test."))
    211         [u'Another', u"'person's'", u'test.']
    212         >>> list(smart_split(r'A "\"funky\" style" test.'))
    213         [u'A', u'""funky" style"', u'test.']
     210    >>> list(smart_split(r"Another 'person\'s' test."))
     211    [u'Another', u"'person's'", u'test.']
     212    >>> list(smart_split(r'A "\"funky\" style" test.'))
     213    [u'A', u'""funky" style"', u'test.']
    214214    """
    215215    text = force_unicode(text)
    216216    for bit in smart_split_re.finditer(text):
  • django/contrib/sites/tests.py

     
    22>>> from django.contrib.sites.models import Site
    33>>> from django.conf import settings
    44>>> Site(id=settings.SITE_ID, domain="example.com", name="example.com").save()
    5        
     5
    66>>> # Make sure that get_current() does not return a deleted Site object.
    77>>> s = Site.objects.get_current()
    88>>> isinstance(s, Site)
  • tests/regressiontests/templates/tests.py

     
    720720            'inheritance25': ("{% extends context_template.1 %}{% block first %}2{% endblock %}{% block second %}4{% endblock %}", {'context_template': [template.Template("Wrong"), template.Template("1{% block first %}_{% endblock %}3{% block second %}_{% endblock %}")]}, '1234'),
    721721
    722722            # Set up a base template to extend
    723                 'inheritance26': ("no tags", {}, 'no tags'),
     723            'inheritance26': ("no tags", {}, 'no tags'),
    724724
    725                 # Inheritance from a template that doesn't have any blocks
    726                 'inheritance27': ("{% extends 'inheritance26' %}", {}, 'no tags'),
     725            # Inheritance from a template that doesn't have any blocks
     726            'inheritance27': ("{% extends 'inheritance26' %}", {}, 'no tags'),
    727727
    728728            ### I18N ##################################################################
    729729
Back to Top