Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)
Given a string containing embedded paras, output wrapped

        def wrap_help_paras(wrapper, text):
    """Given a string containing embedded paras, output wrapped"""

    for idx, para in enumerate(text.split("\n\n")):
        if idx:
            print
        print wrapper.fill(para)
        


src/t/e/templer.core-HEAD/src/templer/core/control_script.py   templer.core(Download)
from textwrap import TextWrapper
 
from templer.core.base import wrap_help_paras
from templer.core.create import CreateDistroCommand
from templer.core.ui import list_sorted_templates
                    print "\n%s: %s\n" % (temp['name'], temp['summary'])
                    if temp['help']:
                        wrap_help_paras(textwrapper, temp['help'])
            print
        else:

src/t/e/templer.core-1.0b4/src/templer/core/zopeskel_script.py   templer.core(Download)
from paste.script.command import get_commands
 
from templer.core.base import wrap_help_paras
from templer.core.ui import list_sorted_templates
 
            print "\n%s: %s\n" % (temp['name'], temp['summary'])
            if temp['help']:
                wrap_help_paras(textwrapper, temp['help'])
    print