celery.utils.text

    celery.utils.text.dedent_initial(s, n=4)[源代码]

    celery.utils.text.dedent(s, n=4, sep=’\n’)

    celery.utils.text.fill_paragraphs(s, width, sep=’\n’)[源代码]

    celery.utils.text.ensure_2lines(s, sep=’\n’)

    celery.utils.text.abbr(S, max, ellipsis=’…’)[源代码]

    celery.utils.text.abbrtask(S, max)

    Indent text.

    celery.utils.text.truncate(text, maxlen=128, suffix=’…’)[源代码]

    Truncates text to a maximum number of characters.

    celery.utils.text.pretty(value, width=80, nl_width=80, sep=’\n’, \*kw*)