Did I find the right examples for you? yes no

All Samples(35)  |  Call(25)  |  Derive(0)  |  Import(10)

        def avoid_wrapping(value):
    """
    Avoid text wrapping in the middle of a phrase by adding non-breaking
    spaces where there previously were normal spaces.
    """
    return value.replace(" ", "\xa0")
        


src/a/n/antisocial-HEAD/ve/lib/python2.7/site-packages/django/template/defaultfilters.py   antisocial(Download)
from django.utils.dateformat import format, time_format
from django.utils.encoding import force_text, iri_to_uri
from django.utils.html import (conditional_escape, escapejs, fix_ampersands,
    escape, urlize as urlize_impl, linebreaks, strip_tags, avoid_wrapping)
from django.utils.http import urlquote
    except (TypeError,ValueError,UnicodeDecodeError):
        value = ungettext("%(size)d byte", "%(size)d bytes", 0) % {'size': 0}
        return avoid_wrapping(value)
 
    filesize_number_format = lambda value: formats.number_format(round(value, 1), 1)
        value = ugettext("%s PB") % filesize_number_format(bytes / PB)
 
    return avoid_wrapping(value)
 
@register.filter(is_safe=False)

src/r/o/rolf-HEAD/ve/lib/python2.7/site-packages/django/template/defaultfilters.py   rolf(Download)
from django.utils.dateformat import format, time_format
from django.utils.encoding import force_text, iri_to_uri
from django.utils.html import (conditional_escape, escapejs, fix_ampersands,
    escape, urlize as urlize_impl, linebreaks, strip_tags, avoid_wrapping)
from django.utils.http import urlquote
    except (TypeError,ValueError,UnicodeDecodeError):
        value = ungettext("%(size)d byte", "%(size)d bytes", 0) % {'size': 0}
        return avoid_wrapping(value)
 
    filesize_number_format = lambda value: formats.number_format(round(value, 1), 1)
        value = ugettext("%s PB") % filesize_number_format(bytes / PB)
 
    return avoid_wrapping(value)
 
@register.filter(is_safe=False)

src/p/o/pourover-HEAD/buster/lib/django/template/defaultfilters.py   pourover(Download)
from django.utils.dateformat import format, time_format
from django.utils.encoding import force_text, iri_to_uri
from django.utils.html import (conditional_escape, escapejs, fix_ampersands,
    escape, urlize as urlize_impl, linebreaks, strip_tags, avoid_wrapping)
from django.utils.http import urlquote
    except (TypeError,ValueError,UnicodeDecodeError):
        value = ungettext("%(size)d byte", "%(size)d bytes", 0) % {'size': 0}
        return avoid_wrapping(value)
 
    filesize_number_format = lambda value: formats.number_format(round(value, 1), 1)
        value = ugettext("%s PB") % filesize_number_format(bytes / PB)
 
    return avoid_wrapping(value)
 
@register.filter(is_safe=False)

src/u/p/UP-Manager-0.0.0/django/template/defaultfilters.py   UP-Manager(Download)
from django.utils.dateformat import format, time_format
from django.utils.encoding import force_text, iri_to_uri
from django.utils.html import (conditional_escape, escapejs, fix_ampersands,
    escape, urlize as urlize_impl, linebreaks, strip_tags, avoid_wrapping)
from django.utils.http import urlquote
    except (TypeError,ValueError,UnicodeDecodeError):
        value = ungettext("%(size)d byte", "%(size)d bytes", 0) % {'size': 0}
        return avoid_wrapping(value)
 
    filesize_number_format = lambda value: formats.number_format(round(value, 1), 1)
        value = ugettext("%s PB") % filesize_number_format(bytes / PB)
 
    return avoid_wrapping(value)
 
@register.filter(is_safe=False)

src/d/j/Django-1.6.4/django/template/defaultfilters.py   Django(Download)
from django.utils.dateformat import format, time_format
from django.utils.encoding import force_text, iri_to_uri
from django.utils.html import (conditional_escape, escapejs, fix_ampersands,
    escape, urlize as urlize_impl, linebreaks, strip_tags, avoid_wrapping)
from django.utils.http import urlquote
    except (TypeError,ValueError,UnicodeDecodeError):
        value = ungettext("%(size)d byte", "%(size)d bytes", 0) % {'size': 0}
        return avoid_wrapping(value)
 
    filesize_number_format = lambda value: formats.number_format(round(value, 1), 1)
        value = ugettext("%s PB") % filesize_number_format(bytes / PB)
 
    return avoid_wrapping(value)
 
@register.filter(is_safe=False)

src/a/n/antisocial-HEAD/ve/lib/python2.7/site-packages/django/utils/timesince.py   antisocial(Download)
from __future__ import unicode_literals
 
import datetime
 
from django.utils.html import avoid_wrapping
    if since <= 0:
        # d is in the future compared to now, stop processing.
        return avoid_wrapping(ugettext('0 minutes'))
    for i, (seconds, name) in enumerate(chunks):
        count = since // seconds
        if count != 0:
            break
    result = avoid_wrapping(name % count)
        count2 = (since - (seconds * count)) // seconds2
        if count2 != 0:
            result += ugettext(', ') + avoid_wrapping(name2 % count2)
    return result
 

src/r/o/rolf-HEAD/ve/lib/python2.7/site-packages/django/utils/timesince.py   rolf(Download)
from __future__ import unicode_literals
 
import datetime
 
from django.utils.html import avoid_wrapping
    if since <= 0:
        # d is in the future compared to now, stop processing.
        return avoid_wrapping(ugettext('0 minutes'))
    for i, (seconds, name) in enumerate(chunks):
        count = since // seconds
        if count != 0:
            break
    result = avoid_wrapping(name % count)
        count2 = (since - (seconds * count)) // seconds2
        if count2 != 0:
            result += ugettext(', ') + avoid_wrapping(name2 % count2)
    return result
 

src/p/o/pourover-HEAD/buster/lib/django/utils/timesince.py   pourover(Download)
from __future__ import unicode_literals
 
import datetime
 
from django.utils.html import avoid_wrapping
    if since <= 0:
        # d is in the future compared to now, stop processing.
        return avoid_wrapping(ugettext('0 minutes'))
    for i, (seconds, name) in enumerate(chunks):
        count = since // seconds
        if count != 0:
            break
    result = avoid_wrapping(name % count)
        count2 = (since - (seconds * count)) // seconds2
        if count2 != 0:
            result += ugettext(', ') + avoid_wrapping(name2 % count2)
    return result
 

src/u/p/UP-Manager-0.0.0/django/utils/timesince.py   UP-Manager(Download)
from __future__ import unicode_literals
 
import datetime
 
from django.utils.html import avoid_wrapping
    if since <= 0:
        # d is in the future compared to now, stop processing.
        return avoid_wrapping(ugettext('0 minutes'))
    for i, (seconds, name) in enumerate(chunks):
        count = since // seconds
        if count != 0:
            break
    result = avoid_wrapping(name % count)
        count2 = (since - (seconds * count)) // seconds2
        if count2 != 0:
            result += ugettext(', ') + avoid_wrapping(name2 % count2)
    return result
 

src/d/j/Django-1.6.4/django/utils/timesince.py   Django(Download)
from __future__ import unicode_literals
 
import datetime
 
from django.utils.html import avoid_wrapping
    if since <= 0:
        # d is in the future compared to now, stop processing.
        return avoid_wrapping(ugettext('0 minutes'))
    for i, (seconds, name) in enumerate(chunks):
        count = since // seconds
        if count != 0:
            break
    result = avoid_wrapping(name % count)
        count2 = (since - (seconds * count)) // seconds2
        if count2 != 0:
            result += ugettext(', ') + avoid_wrapping(name2 % count2)
    return result